mirror of
https://gitlab.com/Theopse/fbi-i18n-zh.git
synced 2025-05-12 02:58:58 +08:00
[2021/01/20-Inchar] Time's format
This commit is contained in:
parent
e04725a610
commit
4ce63659fc
@ -158,8 +158,16 @@ static void ui_draw_top(ui_view* ui) {
|
|||||||
screen_draw_string(verText, topScreenTopBarX + 2, topScreenTopBarY + (topScreenTopBarHeight - verHeight) / 2, 0.5f, 0.5f, COLOR_TEXT, true);
|
screen_draw_string(verText, topScreenTopBarX + 2, topScreenTopBarY + (topScreenTopBarHeight - verHeight) / 2, 0.5f, 0.5f, COLOR_TEXT, true);
|
||||||
|
|
||||||
time_t t = time(NULL);
|
time_t t = time(NULL);
|
||||||
char* timeText = ctime(&t);
|
|
||||||
timeText[strlen(timeText) - 1] = '\0';
|
|
||||||
|
//char* timeText = ctime(&t);
|
||||||
|
char timeText[160];
|
||||||
|
struct tm * timeinfo;
|
||||||
|
timeinfo = localtime(&t);
|
||||||
|
strftime(timeText,160,"%Y/%m/%d %H:%M:%S\0",timeinfo);
|
||||||
|
|
||||||
|
|
||||||
|
//timeText[strlen(timeText) - 1] = '\0';
|
||||||
|
|
||||||
float timeTextWidth;
|
float timeTextWidth;
|
||||||
float timeTextHeight;
|
float timeTextHeight;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user