Searched refs:tm (Results 1 – 2 of 2) sorted by relevance
/lib/ |
D | test_printf.c | 482 const struct rtc_time tm = { in struct_rtc_time() local 491 test("(%ptR?)", "%pt", &tm); in struct_rtc_time() 492 test("2018-11-26T05:35:43", "%ptR", &tm); in struct_rtc_time() 493 test("0118-10-26T05:35:43", "%ptRr", &tm); in struct_rtc_time() 494 test("05:35:43|2018-11-26", "%ptRt|%ptRd", &tm, &tm); in struct_rtc_time() 495 test("05:35:43|0118-10-26", "%ptRtr|%ptRdr", &tm, &tm); in struct_rtc_time() 496 test("05:35:43|2018-11-26", "%ptRttr|%ptRdtr", &tm, &tm); in struct_rtc_time() 497 test("05:35:43 tr|2018-11-26 tr", "%ptRt tr|%ptRd tr", &tm, &tm); in struct_rtc_time()
|
D | vsprintf.c | 1729 char *date_str(char *buf, char *end, const struct rtc_time *tm, bool r) in date_str() argument 1731 int year = tm->tm_year + (r ? 0 : 1900); in date_str() 1732 int mon = tm->tm_mon + (r ? 0 : 1); in date_str() 1744 return number(buf, end, tm->tm_mday, default_dec02_spec); in date_str() 1748 char *time_str(char *buf, char *end, const struct rtc_time *tm, bool r) in time_str() argument 1750 buf = number(buf, end, tm->tm_hour, default_dec02_spec); in time_str() 1755 buf = number(buf, end, tm->tm_min, default_dec02_spec); in time_str() 1760 return number(buf, end, tm->tm_sec, default_dec02_spec); in time_str() 1764 char *rtc_str(char *buf, char *end, const struct rtc_time *tm, in rtc_str() argument 1771 if (check_pointer(&buf, end, tm, spec)) in rtc_str() [all …]
|