/netbsd-current/external/bsd/mdocml/dist/ |
H A D | test-strptime.c | 6 struct tm tm; local 8 return ! (strptime(input, "%Y-%m-%d", &tm) == input + 10 && 9 tm.tm_year == 114 && tm.tm_mon == 0 && tm.tm_mday == 4);
|
/netbsd-current/external/gpl3/gdb.old/dist/gnulib/import/ |
H A D | localtime-buffer.c | 27 static struct tm tm_zero_buffer; 28 struct tm *localtime_buffer_addr = &tm_zero_buffer; 35 struct tm * 39 struct tm *tm = localtime (timep); local 42 localtime_buffer_addr = tm; 44 return tm; 48 struct tm * 52 struct tm *tm local [all...] |
H A D | time_r.c | 24 static struct tm * 25 copy_tm_result (struct tm *dest, struct tm const *src) 34 struct tm * 35 gmtime_r (time_t const * restrict t, struct tm * restrict tp) 40 struct tm * 41 localtime_r (time_t const * restrict t, struct tm * restrict tp)
|
H A D | localtime-buffer.h | 25 extern struct tm *localtime_buffer_addr;
|
/netbsd-current/external/bsd/ntp/dist/libntp/ |
H A D | humandate.c | 23 struct tm * tm; local 26 tm = localtime(&cursec); 27 if (!tm) 33 tm->tm_mday, months[tm->tm_mon], 34 tm->tm_hour, tm->tm_min, tm->tm_sec); 50 struct tm * t local [all...] |
H A D | uglydate.c | 23 struct tm *tm; local 32 tm = gmtime(&sec); 38 tm->tm_yday = 0; 39 tm->tm_hour = 0; 40 tm->tm_min = 0; 41 tm->tm_sec = 0; 43 year = tm->tm_year; 49 tm->tm_yday, tm [all...] |
/netbsd-current/external/bsd/ntp/dist/tests/libntp/ |
H A D | humandate.c | 29 struct tm* tm; local 31 tm = localtime(&sample); 32 TEST_ASSERT_TRUE(tm != NULL); 34 snprintf(expected, 15, "%02d:%02d:%02d", tm->tm_hour, tm->tm_min, tm->tm_sec); 46 struct tm* tm; local 50 tm [all...] |
/netbsd-current/crypto/external/bsd/heimdal/dist/lib/asn1/ |
H A D | timegm.c | 58 _der_timegm (struct tm *tm) argument 66 if (tm->tm_year > ASN1_MAX_YEAR) 69 if (tm->tm_year < 0) 71 if (tm->tm_mon < 0 || tm->tm_mon > 11) 73 if (tm->tm_mday < 1 || tm->tm_mday > (int)ndays[is_leap(tm->tm_year)][tm 98 _der_gmtime(time_t t, struct tm *tm) argument [all...] |
H A D | check-timegm.c | 44 struct tm tm; local 47 memset(&tm, 0, sizeof(tm)); 48 tm.tm_year = 106; 49 tm.tm_mon = 9; 50 tm.tm_mday = 1; 51 tm.tm_hour = 10; 52 tm.tm_min = 3; 54 t = _der_timegm(&tm); [all...] |
/netbsd-current/external/mpl/bind/dist/lib/isc/include/isc/ |
H A D | tm.h | 1 /* $NetBSD: tm.h,v 1.6 2024/02/21 22:52:31 christos Exp $ */ 18 /*! \file isc/tm.h 19 * Provides portable conversion routines for struct tm. 29 isc_tm_timegm(struct tm *tm); 31 * Convert a tm structure to time_t, using UTC rather than the local 36 isc_tm_strptime(const char *buf, const char *fmt, struct tm *tm); 38 * Parse a formatted date string into struct tm.
|
/netbsd-current/external/bsd/file/dist/src/ |
H A D | localtime_r.c | 17 struct tm * 18 localtime_r(const time_t *t, struct tm *tm) argument 20 struct tm *tmp = localtime(t); 23 memcpy(tm, tmp, sizeof(*tm));
|
H A D | gmtime_r.c | 17 struct tm * 18 gmtime_r(const time_t *t, struct tm *tm) argument 20 struct tm *tmp = gmtime(t); 23 memcpy(tm, tmp, sizeof(*tm));
|
/netbsd-current/crypto/external/bsd/heimdal/dist/lib/roken/ |
H A D | timegm.c | 53 rk_timegm (struct tm *tm) argument 61 if (tm->tm_year < 0) 63 if (tm->tm_mon < 0 || tm->tm_mon > 11) 65 if (tm->tm_mday < 1 || tm->tm_mday > ndays[is_leap(tm->tm_year)][tm->tm_mon]) 67 if (tm [all...] |
H A D | localtime_r.c | 44 ROKEN_LIB_FUNCTION struct tm * ROKEN_LIB_CALL 45 localtime_r(const time_t *timer, struct tm *result) 52 struct tm *tm; 54 tm = localtime((time_t *)timer); 55 if (tm == NULL) 57 *result = *tm;
|
H A D | strftime.c | 121 * Return the week number of `tm' (Sunday being the first day of the week) 126 week_number_sun (const struct tm *tm) argument 128 return (tm->tm_yday + 7 - (tm->tm_yday % 7 - tm->tm_wday + 7) % 7) / 7; 132 * Return the week number of `tm' (Monday being the first day of the week) 137 week_number_mon (const struct tm *tm) argument 139 int wday = (tm 151 week_number_mon4(const struct tm *tm) argument 172 strftime(char *buf, size_t maxsize, const char *format, const struct tm *tm) argument [all...] |
/netbsd-current/external/gpl3/gdb/dist/gnulib/import/ |
H A D | time_r.c | 24 static struct tm * 25 copy_tm_result (struct tm *dest, struct tm const *src) 34 struct tm * 35 gmtime_r (time_t const * restrict t, struct tm * restrict tp) 40 struct tm * 41 localtime_r (time_t const * restrict t, struct tm * restrict tp)
|
/netbsd-current/tests/lib/libutil/ |
H A D | t_parsedate.c | 58 struct tm * time_to_tm(const time_t *, struct tm *), 62 struct tm tm; local 90 ATF_CHECK(time_to_tm(&t, &tm) != NULL); 92 ATF_CHECK_MSG(tm.tm_year + 1900 == year, 94 argstr, year, (int)tm.tm_year); 96 ATF_CHECK_MSG(tm.tm_mon + 1 == month, 98 argstr, month, (int)tm.tm_mon); 100 ATF_CHECK_MSG(tm 245 struct tm tm; local 288 struct tm tm; local [all...] |
/netbsd-current/external/gpl2/rcs/dist/src/ |
H A D | maketime.h | 37 struct tm *time2tm __MAKETIME_P((time_t,int)); 38 time_t difftm __MAKETIME_P((struct tm const *, struct tm const *)); 40 time_t tm2time __MAKETIME_P((struct tm *, int)); 41 void adjzone __MAKETIME_P((struct tm *, long));
|
H A D | maketime.c | 51 static int month_days P((struct tm const*)); 77 month_days(tm) 78 struct tm const *tm; 80 int m = tm->tm_mon; 82 + (m==1 && isleap(tm->tm_year + TM_YEAR_ORIGIN)); 86 * Convert UNIXTIME to struct tm form. 89 struct tm * 94 struct tm *tm; local 263 struct tm tm; local [all...] |
/netbsd-current/external/gpl2/xcvs/dist/lib/ |
H A D | strftime.h | 21 size_t nstrftime (char *, size_t, char const *, struct tm const *, int, int);
|
H A D | time_r.c | 40 static struct tm * 41 copy_tm_result (struct tm *dest, struct tm const *src) 51 asctime_r (struct tm const * restrict tm, char * restrict buf) argument 53 return copy_string_result (buf, asctime (tm)); 62 struct tm * 63 gmtime_r (time_t const * restrict t, struct tm * restrict tp) 68 struct tm * 69 localtime_r (time_t const * restrict t, struct tm * restric [all...] |
H A D | time_r.h | 42 char *asctime_r (struct tm const * restrict, char * restrict); 50 struct tm *gmtime_r (time_t const * restrict, struct tm * restrict); 54 struct tm *localtime_r (time_t const * restrict, struct tm * restrict);
|
/netbsd-current/external/mpl/dhcp/bind/dist/lib/isc/include/isc/ |
H A D | tm.h | 1 /* $NetBSD: tm.h,v 1.1 2024/02/18 20:57:54 christos Exp $ */ 19 /*! \file isc/tm.h 20 * Provides portable conversion routines for struct tm. 30 isc_tm_timegm(struct tm *tm); 32 * Convert a tm structure to time_t, using UTC rather than the local 37 isc_tm_strptime(const char *buf, const char *fmt, struct tm *tm); 39 * Parse a formatted date string into struct tm.
|
/netbsd-current/usr.sbin/rtadvd/ |
H A D | timer.c | 80 newtimer->tm = tm_max; 100 rtadvd_set_timer(struct timespec *tm, struct rtadvd_timer *timer) argument 106 timespecadd(&now, tm, &timer->tm); 109 if (timespeccmp(&timer->tm, &tm_max, <)) 110 tm_max = timer->tm; 126 struct rtadvd_timer *tm, *tmn; local 131 TAILQ_FOREACH_SAFE(tm, &ra_timer, next, tmn) { 132 if (!tm->enabled) 134 if (timespeccmp(&tm [all...] |
/netbsd-current/lib/libc/compat/include/ |
H A D | time.h | 51 struct tm * __restrict); 63 struct tm *gmtime(const int32_t *); 64 struct tm *localtime(const int32_t *); 66 int32_t mktime(struct tm *); 88 struct tm *gmtime_r(const int32_t * __restrict, struct tm * __restrict); 89 struct tm *localtime_r(const int32_t * __restrict, struct tm * __restrict); 90 struct tm *offtime(const int32_t *, long); 91 struct tm *offtime_ [all...] |