MCPcopy Create free account
hub / github.com/Blueforcer/awtrix3 / getTimeFormat

Function getTimeFormat

src/Apps.cpp:86–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86const char *getTimeFormat()
87{
88 if (TIME_MODE == 0)
89 {
90 return TIME_FORMAT.c_str();
91 }
92 else
93 {
94 if (TIME_FORMAT.length() > 5)
95 {
96 return TIME_FORMAT[2] == ' ' ? "%H %M" : "%H:%M";
97 }
98 else
99 {
100 return TIME_FORMAT.c_str();
101 }
102 }
103}
104
105void TimeApp(FastLED_NeoMatrix *matrix, MatrixDisplayUiState *state, int16_t x, int16_t y, GifPlayer *gifPlayer)
106{

Callers 1

TimeAppFunction · 0.85

Calls 1

lengthMethod · 0.80

Tested by

no test coverage detected