HomeSort by: relevance | last modified time | path
    Searched refs:tm (Results 1 - 25 of 936) sorted by relevancy

1 2 3 4 5 6 7 8 91011>>

  /src/external/bsd/mdocml/dist/
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);
  /src/external/bsd/ntp/dist/libntp/
humandate.c 22 struct tm * tm; local
25 tm = localtime(&cursec);
26 if (!tm)
32 tm->tm_mday, months[tm->tm_mon],
33 tm->tm_hour, tm->tm_min, tm->tm_sec);
49 struct tm * tm local
    [all...]
uglydate.c 22 struct tm *tm; local
31 tm = gmtime(&sec);
37 tm->tm_yday = 0;
38 tm->tm_hour = 0;
39 tm->tm_min = 0;
40 tm->tm_sec = 0;
42 year = tm->tm_year;
48 tm->tm_yday, tm->tm_hour, tm->tm_min, tm->tm_sec
    [all...]
  /src/external/bsd/ntp/dist/tests/libntp/
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 = localtime(&sample)
    [all...]
  /src/crypto/external/bsd/heimdal/dist/lib/asn1/
timegm.c 58 _der_timegm (struct tm *tm)
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->tm_mon]
    [all...]
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...]
  /src/external/mpl/bind/dist/lib/isc/include/isc/
tm.h 1 /* $NetBSD: tm.h,v 1.7 2025/01/26 16:25:43 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.
  /src/external/bsd/file/dist/src/
gmtime_r.c 17 struct tm *
18 gmtime_r(const time_t *t, struct tm *tm)
20 struct tm *tmp = gmtime(t);
23 memcpy(tm, tmp, sizeof(*tm));
localtime_r.c 17 struct tm *
18 localtime_r(const time_t *t, struct tm *tm)
20 struct tm *tmp = localtime(t);
23 memcpy(tm, tmp, sizeof(*tm));
  /src/crypto/external/bsd/heimdal/dist/lib/roken/
timegm.c 53 rk_timegm (struct tm *tm)
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->tm_hour < 0 || tm->tm_hour > 23
    [all...]
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;
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)
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)
139 int wday = (tm->tm_wday + 6) % 7
    [all...]
  /src/external/gpl3/gdb/dist/gnulib/import/
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)
  /src/external/gpl3/gdb.old/dist/gnulib/import/
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)
  /src/tests/lib/libutil/
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.tm_mday == day
245 struct tm tm; local
288 struct tm tm; local
    [all...]
  /src/external/gpl2/rcs/dist/src/
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));
maketime.c 51 static int month_days P((struct tm const*));
75 /* Yield the number of days in TM's month. */
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...]
  /src/external/gpl2/xcvs/dist/lib/
strftime.h 21 size_t nstrftime (char *, size_t, char const *, struct tm const *, int, int);
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)
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 * restrict tp
    [all...]
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);
  /src/external/mpl/dhcp/bind/dist/lib/isc/include/isc/
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.
  /src/usr.sbin/rtadvd/
timer.c 80 newtimer->tm = tm_max;
100 rtadvd_set_timer(struct timespec *tm, struct rtadvd_timer *timer)
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->tm, &now, <=))
    [all...]
  /src/lib/libc/compat/include/
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_r(const int32_t *, long, struct tm *)
    [all...]
  /src/external/gpl3/gcc/dist/libstdc++-v3/src/c++98/
locale_facets.cc 172 day_of_the_year (tm *tm)
174 return (mon_yday[is_leap (1900 + tm->tm_year)][tm->tm_mon]
175 + (tm->tm_mday - 1));
182 _M_finalize_state(tm* tm)
185 tm->tm_hour += 12;
189 tm->tm_year = tm->tm_year % 100
    [all...]
  /src/external/gpl3/gcc.old/dist/libstdc++-v3/src/c++98/
locale_facets.cc 172 day_of_the_year (tm *tm)
174 return (mon_yday[is_leap (1900 + tm->tm_year)][tm->tm_mon]
175 + (tm->tm_mday - 1));
182 _M_finalize_state(tm* tm)
185 tm->tm_hour += 12;
189 tm->tm_year = tm->tm_year % 100
    [all...]

Completed in 35 milliseconds

1 2 3 4 5 6 7 8 91011>>