Lines Matching defs:tm
61 year (struct tm *tm, const int *digit_pair, size_t n, unsigned int syntax_bits)
66 tm->tm_year = *digit_pair;
74 tm->tm_year += 100;
81 tm->tm_year = digit_pair[0] * 100 + digit_pair[1] - 1900;
87 struct tm *tmp;
94 tm->tm_year = tmp->tm_year;
106 posix_time_parse (struct tm *tm, const char *s, unsigned int syntax_bits)
141 if (year (tm, p, len - 4, syntax_bits))
148 tm->tm_mon = *p++ - 1;
149 tm->tm_mday = *p++;
150 tm->tm_hour = *p++;
151 tm->tm_min = *p++;
157 if (year (tm, p, len, syntax_bits))
164 tm->tm_sec = 0;
175 tm->tm_sec = seconds;
186 struct tm tm0;
187 struct tm tm1;
188 struct tm const *tm;
199 tm = &tm1;
204 tm = localtime (&t);
205 if (! tm)
211 if ((tm0.tm_year ^ tm->tm_year)
212 | (tm0.tm_mon ^ tm->tm_mon)
213 | (tm0.tm_mday ^ tm->tm_mday)
214 | (tm0.tm_hour ^ tm->tm_hour)
215 | (tm0.tm_min ^ tm->tm_min)
216 | (tm0.tm_sec ^ tm->tm_sec))