Lines Matching defs:tm
73 #define TM tm
251 static int check_tm(struct TM *tm)
254 assert(tm->tm_sec >= 0);
255 assert(tm->tm_sec <= 61);
257 assert(tm->tm_min >= 0);
258 assert(tm->tm_min <= 59);
260 assert(tm->tm_hour >= 0);
261 assert(tm->tm_hour <= 23);
263 assert(tm->tm_mday >= 1);
264 assert(tm->tm_mday <= days_in_month[IS_LEAP(tm->tm_year)][tm->tm_mon]);
266 assert(tm->tm_mon >= 0);
267 assert(tm->tm_mon <= 11);
269 assert(tm->tm_wday >= 0);
270 assert(tm->tm_wday <= 6);
272 assert(tm->tm_yday >= 0);
273 assert(tm->tm_yday <= length_of_year[IS_LEAP(tm->tm_year)]);
276 assert(tm->tm_gmtoff >= -24 * 60 * 60);
277 assert(tm->tm_gmtoff <= 24 * 60 * 60);
367 static void copy_tm_to_TM(const struct tm *src, struct TM *dest) {
399 static void copy_TM_to_tm(const struct TM *src, struct tm *dest) {
432 struct tm * fake_localtime_r(const time_t *clock, struct tm *result) {
433 const struct tm *static_result = localtime(clock);
450 struct tm * fake_gmtime_r(const time_t *clock, struct tm *result) {
451 const struct tm *static_result = gmtime(clock);
492 struct tm safe_date;
536 struct tm safe_date;
651 struct tm safe_date;