/time/ |
A D | getdate.c | 191 tp->tm_year = tp->tm_mon = tp->tm_mday = tp->tm_wday = INT_MIN; in __getdate_r() 192 tp->tm_hour = tp->tm_sec = tp->tm_min = INT_MIN; in __getdate_r() 226 if (tp->tm_wday >= 0 && tp->tm_wday <= 6 && tp->tm_year == INT_MIN in __getdate_r() 227 && tp->tm_mon == INT_MIN && tp->tm_mday == INT_MIN) in __getdate_r() 231 tp->tm_mday = tm.tm_mday + (tp->tm_wday - tm.tm_wday + 7) % 7; in __getdate_r() 239 if (tp->tm_mon >= 0 && tp->tm_mon <= 11 && tp->tm_mday == INT_MIN) in __getdate_r() 243 tp->tm_mday = first_wday (tp->tm_year, tp->tm_mon, tp->tm_wday); in __getdate_r() 249 if (tp->tm_hour == INT_MIN && tp->tm_min == INT_MIN && tp->tm_sec == INT_MIN) in __getdate_r() 267 if (tp->tm_hour >= 0 && tp->tm_hour <= 23 in __getdate_r() 269 && tp->tm_mday == INT_MIN && tp->tm_wday == INT_MIN) in __getdate_r() [all …]
|
A D | asctime.c | 36 if (tp == NULL) in asctime_internal() 49 if (__glibc_unlikely (tp->tm_year > INT_MAX - 1900)) in asctime_internal() 57 (tp->tm_wday < 0 || tp->tm_wday >= 7 in asctime_internal() 58 ? "???" : ab_day_name (tp->tm_wday)), in asctime_internal() 59 (tp->tm_mon < 0 || tp->tm_mon >= 12 in asctime_internal() 60 ? "???" : ab_month_name (tp->tm_mon)), in asctime_internal() 61 tp->tm_mday, tp->tm_hour, tp->tm_min, in asctime_internal() 62 tp->tm_sec, 1900 + tp->tm_year); in asctime_internal() 75 __asctime_r (const struct tm *tp, char *buf) in __asctime_r() argument 77 return asctime_internal (tp, buf, 26); in __asctime_r() [all …]
|
A D | offtime.c | 47 tp->tm_hour = rem / SECS_PER_HOUR; in __offtime() 49 tp->tm_min = rem / 60; in __offtime() 50 tp->tm_sec = rem % 60; in __offtime() 52 tp->tm_wday = (4 + days) % 7; in __offtime() 53 if (tp->tm_wday < 0) in __offtime() 54 tp->tm_wday += 7; in __offtime() 71 tp->tm_year = y - 1900; in __offtime() 72 if (tp->tm_year != y - 1900) in __offtime() 78 tp->tm_yday = days; in __offtime() 83 tp->tm_mon = y; in __offtime() [all …]
|
A D | bug-asctime.c | 12 struct tm *tp = localtime (&t); in do_test() local 13 tp->tm_year = INT_MAX; in do_test() 15 char *s = asctime (tp); in do_test() 23 s = asctime_r (tp, buf); in do_test()
|
A D | mktime.c | 246 struct tm const *tp) in tm_diff() argument 249 tp->tm_year, tp->tm_yday, in tm_diff() 250 tp->tm_hour, tp->tm_min, tp->tm_sec); in tm_diff() 297 ok = mid, oktm = *tp; in ranged_convert() 307 *tp = oktm; in ranged_convert() 308 return tp; in ranged_convert() 514 *tp = tm; in __mktime_internal() 536 return mktime (tp); in __mktime64() 546 mktime (struct tm *tp) in libc_hidden_def() 548 struct tm tm = *tp; in libc_hidden_def() [all …]
|
A D | tst_wcsftime.c | 9 struct tm *tp; in main() local 14 tp = gmtime (&t); in main() 17 L"%H:%M:%S %Y-%m-%d\n", tp); in main() 23 wcsftime (buf, sizeof (buf) / sizeof (buf[0]), L"%A\n", tp); in main()
|
A D | gmtime.c | 24 __gmtime64_r (const __time64_t *t, struct tm *tp) in __gmtime64_r() argument 26 return __tz_convert (*t, 0, tp); in __gmtime64_r() 36 __gmtime_r (const time_t *t, struct tm *tp) in libc_hidden_def() 39 return __gmtime64_r (&t64, tp); in libc_hidden_def()
|
A D | localtime.c | 28 __localtime64_r (const __time64_t *t, struct tm *tp) in __localtime64_r() argument 30 return __tz_convert (*t, 1, tp); in __localtime64_r() 38 __localtime_r (const time_t *t, struct tm *tp) in __localtime_r() argument 41 return __localtime64_r (&t64, tp); in __localtime_r()
|
A D | strftime_l.c | 456 tmcopy = *tp; in my_strftime() 457 tp = &tmcopy; in my_strftime() 491 ((const CHAR_T *) (tp->tm_mon < 0 || tp->tm_mon > 11 \ in libc_hidden_def() 494 ((const CHAR_T *) (tp->tm_mon < 0 || tp->tm_mon > 11 \ in libc_hidden_def() 497 ((const CHAR_T *) (tp->tm_mon < 0 || tp->tm_mon > 11 \ in libc_hidden_def() 512 # define f_wkday (tp->tm_wday < 0 || tp->tm_wday > 6 \ in libc_hidden_def() 514 # define f_month (tp->tm_mon < 0 || tp->tm_mon > 11 \ in libc_hidden_def() 1143 ltm = *tp; in libc_hidden_def() 1209 DO_NUMBER (2, (tp->tm_yday - tp->tm_wday + 7) / 7); in libc_hidden_def() 1218 int days = iso_week_days (tp->tm_yday, tp->tm_wday); in libc_hidden_def() [all …]
|
A D | bug-asctime_r.c | 12 struct tm *tp = localtime (&t); in do_test() local 13 tp->tm_year = 10000 - 1900; in do_test() 17 char *s = asctime_r (tp, buf); in do_test()
|
A D | strftime.c | 23 strftime (char *s, size_t maxsize, const char *format, const struct tm *tp) in strftime() argument 25 return __strftime_l (s, maxsize, format, tp, _NL_CURRENT_LOCALE); in strftime()
|
A D | wcsftime.c | 24 const struct tm *tp) in wcsftime() argument 26 return __wcsftime_l (s, maxsize, format, tp, _NL_CURRENT_LOCALE); in wcsftime()
|
A D | test_time.c | 27 struct tm *tp; in main() local 64 tp = localtime(&t); in main() 65 if (tp == NULL) in main() 70 else if (strftime (buf, sizeof (buf), "%a %b %d %X %Z %Y", tp) == 0) in main()
|
A D | tzset.c | 581 &leap_extra_secs, tp); in weak_alias() 584 if (! __offtime (timer, 0, tp)) in weak_alias() 585 tp = NULL; in weak_alias() 594 if (tp) in weak_alias() 598 tp->tm_isdst = 0; in weak_alias() 599 tp->tm_zone = "GMT"; in weak_alias() 600 tp->tm_gmtoff = 0L; in weak_alias() 603 if (__offtime (timer, tp->tm_gmtoff - leap_correction, tp)) in weak_alias() 604 tp->tm_sec += leap_extra_secs; in weak_alias() 606 tp = NULL; in weak_alias() [all …]
|
A D | clock_gettime.c | 25 __clock_gettime (clockid_t clock_id, struct timespec *tp) in __clock_gettime() argument
|
A D | clock_settime.c | 25 __clock_settime (clockid_t clock_id, const struct timespec *tp) in __clock_settime() argument
|
A D | era.c | 142 _nl_get_era_entry (const struct tm *tp, struct __locale_data *current) in _nl_get_era_entry() argument 150 const int32_t tdate[3] = { tp->tm_year, tp->tm_mon, tp->tm_mday }; in _nl_get_era_entry()
|
A D | mktime-internal.h | 76 extern __time64_t __mktime_internal (struct tm *tp,
|
A D | tzfile.c | 581 struct tm *tp) in __tzfile_compute() argument 634 if (__glibc_unlikely (! __offtime (timer, 0, tp))) in __tzfile_compute() 638 __tz_compute (timer, tp, 1); in __tzfile_compute() 747 tp->tm_isdst = info->isdst; in __tzfile_compute() 748 assert (strcmp (&zone_names[info->idx], __tzname[tp->tm_isdst]) == 0); in __tzfile_compute() 749 tp->tm_zone = __tzname[tp->tm_isdst]; in __tzfile_compute() 750 tp->tm_gmtoff = info->offset; in __tzfile_compute()
|
A D | strptime_l.c | 44 localtime_r (const time_t *t, struct tm *tp) in localtime_r() argument 49 *tp = *l; in localtime_r() 50 return tp; in localtime_r()
|