1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

i3_bar: print weekday

This commit is contained in:
Kierán Meinhardt
2018-10-22 08:00:19 +02:00
parent 88f69ae594
commit d9d84dcf7b

View File

@@ -116,7 +116,7 @@ let
time_t now = time(NULL); time_t now = time(NULL);
struct tm *today = localtime(&now); struct tm *today = localtime(&now);
wchar_t roman_month = 0x2160 + today->tm_mon; wchar_t roman_month = 0x2160 + today->tm_mon;
wprintf(L"%d\u2009%lc\u2009%d [%d]\n", today->tm_mday, roman_month, 1900 + today->tm_year, today->tm_yday/7 + 1); wprintf(L"%d\u2009%lc\u2009%d [%d|%d]\n", today->tm_mday, roman_month, 1900 + today->tm_year, today->tm_wday == 0 ? 7 : today->tm_wday, today->tm_yday/7 + 1);
return 0; return 0;
} }
''; '';