Lines Matching refs:tm
58 struct tm tm = {}; in parseDateTime() local
59 tm.tm_sec = second; in parseDateTime()
60 tm.tm_min = minute; in parseDateTime()
61 tm.tm_hour = hour; in parseDateTime()
62 tm.tm_mday = day; in parseDateTime()
63 tm.tm_mon = month - 1; // mktime uses months in 0 - 11 range in parseDateTime()
64 tm.tm_year = year - 1900; in parseDateTime()
65 tm.tm_isdst = -1; in parseDateTime()
66 outSeconds = useUTC ? timegm(&tm) : mktime(&tm); in parseDateTime()
72 struct tm tm; in formatDateTime() local
74 localtime_r(&seconds, &tm); in formatDateTime()
76 tm.tm_year + 1900, in formatDateTime()
77 tm.tm_mon + 1, // localtime_r uses months in 0 - 11 range in formatDateTime()
78 tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec); in formatDateTime()