MCPcopy Create free account
hub / github.com/buggins/coolreader / getTimeString

Method getTimeString

crengine/src/lvdocview.cpp:1198–1204  ·  view source on GitHub ↗

returns current time representation string

Source from the content-addressed store, hash-verified

1196
1197/// returns current time representation string
1198lString16 LVDocView::getTimeString() {
1199 time_t t = (time_t) time(0);
1200 tm * bt = localtime(&t);
1201 char str[12];
1202 sprintf(str, "%02d:%02d", bt->tm_hour, bt->tm_min);
1203 return Utf8ToUnicode(lString8(str));
1204}
1205
1206/// draw battery state to buffer
1207void LVDocView::drawBatteryState(LVDrawBuf * drawbuf, const lvRect & batteryRc,

Callers 2

showAboutDialogMethod · 0.80
fillItemsMethod · 0.80

Calls 2

Utf8ToUnicodeFunction · 0.85
lString8Class · 0.85

Tested by

no test coverage detected