returns current time representation string
| 1196 | |
| 1197 | /// returns current time representation string |
| 1198 | lString16 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 |
| 1207 | void LVDocView::drawBatteryState(LVDrawBuf * drawbuf, const lvRect & batteryRc, |
no test coverage detected