Lines Matching refs:tm
78 struct tm tm = {}; in parseDateTime() local
79 tm.tm_sec = second; in parseDateTime()
80 tm.tm_min = minute; in parseDateTime()
81 tm.tm_hour = hour; in parseDateTime()
82 tm.tm_mday = day; in parseDateTime()
83 tm.tm_mon = month - 1; // mktime uses months in 0 - 11 range in parseDateTime()
84 tm.tm_year = year - 1900; in parseDateTime()
85 tm.tm_isdst = -1; in parseDateTime()
86 outSeconds = useUTC ? timegm(&tm) : mktime(&tm); in parseDateTime()
92 struct tm tm; in formatDateTime() local
94 localtime_r(&seconds, &tm); in formatDateTime()
96 tm.tm_year + 1900, in formatDateTime()
97 tm.tm_mon + 1, // localtime_r uses months in 0 - 11 range in formatDateTime()
98 tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec); in formatDateTime()