| /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/crypto/external/bsd/heimdal/dist/lib/asn1/ |
| 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/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/crypto/external/bsd/heimdal/dist/lib/krb5/ |
| time.c | 114 struct tm *tm; local 116 tm = gmtime (&t); 118 tm = localtime(&t); 119 if(tm == NULL || 120 strftime(s, len, include_time ? context->time_fmt : context->date_fmt, tm) == 0)
|
| /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/usr.bin/chpass/ |
| util.c | 60 struct tm *tp = localtime(&tval); 73 static struct tm *lt; 74 struct tm tm; local 87 (void) memset(&tm, 0, sizeof(tm)); 90 t = strptime(p, "%B %d %Y", &tm); 93 if ((*store = mktime(&tm)) == (time_t) -1)
|
| /src/usr.sbin/rtadvd/ |
| timer.h | 37 struct timespec tm; member in struct:rtadvd_timer
|
| 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/external/bsd/ntp/dist/sntp/libopts/ |
| time.c | 111 struct tm stm; 112 time_t tm; local 122 tm = mktime(&stm); 129 od->optArg.argInt = tm;
|
| /src/external/gpl2/rcs/dist/src/ |
| partime.h | 46 struct tm tm; member in struct:partime 50 * then tm.tm_year is actually modulo ymodulus.
|
| /src/lib/libc/time/ |
| getdate.c | 61 struct tm * 67 static struct tm rtm, tmnow; 68 struct tm *tmp, *rtmp = &rtm; 171 struct tm tm; local 173 memset(&tm, 0, sizeof(struct tm)); 174 tm.tm_year = rtm.tm_year; 175 tm.tm_mon = rtm.tm_mon; 176 tm.tm_mday = 1 235 struct tm tm; local [all...] |
| /src/lib/libcurses/ |
| ctrace.c | 59 char *tf, *tm; local 61 tm = getenv("CURSES_TRACE_MASK"); 62 if (tm == NULL) 65 tracemask = (int)strtol(tm, NULL, 0);
|
| /src/sbin/mount_nilfs/ |
| mount_nilfs.c | 104 struct tm *tm; local 142 tm = localtime(&now); 143 args->gmtoff = tm->tm_gmtoff;
|
| /src/crypto/external/bsd/heimdal/dist/lib/roken/ |
| strpftime-test.c | 238 struct tm *tm; local 240 tm = gmtime (&tests[i].t); 245 struct tm tm2; 248 len = strftime (buf, sizeof(buf), tests[i].vals[j].format, tm); 284 struct tm tm; local 285 memset(&tm, 0, sizeof(tm)); 286 strptime ("200505", "%Y%m", &tm); [all...] |
| /src/external/apache2/mDNSResponder/dist/ServiceRegistration/ |
| srp-log.c | 169 struct tm tm; local 171 localtime_r(&tv.tv_sec, &tm); 172 strftime(timebuf, sizeof(timebuf), "%F %T", &tm); 173 strftime(zonebuf, sizeof(zonebuf), "%z", &tm);
|
| /src/external/bsd/am-utils/dist/conf/umount/ |
| umount_linux.c | 118 struct timespec tm = {0, 200000000}; local 119 nanosleep(&tm, NULL);
|
| /src/external/gpl2/xcvs/dist/lib/ |
| gettimeofday.c | 52 static struct tm *localtime_buffer_addr; 60 struct tm * 63 struct tm *tm = localtime (timep); local 66 localtime_buffer_addr = tm; 68 return tm; 72 struct tm * 75 struct tm *tm = gmtime (timep); local 78 localtime_buffer_addr = tm; [all...] |
| /src/external/mpl/bind/dist/tests/dns/ |
| update_test.c | 61 struct tm tm; local 63 memset(&tm, 0, sizeof(tm)); 64 tm.tm_year = year - 1900; 65 tm.tm_mon = month - 1; 66 tm.tm_mday = day; 67 mystdtime = timegm(&tm);
|
| /src/sbin/mount_udf/ |
| mount_udf.c | 104 struct tm *tm; local 165 tm = localtime(&now); 166 args->gmtoff = tm->tm_gmtoff;
|
| /src/sbin/newfs_udf/ |
| newfs_udf.c | 142 struct tm *tm; local 174 tm = localtime(&now); 175 context.gmtoff = tm->tm_gmtoff;
|
| /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/crypto/dist/ipsec-tools/src/racoon/ |
| logger.c | 179 struct tm *tm; local 190 tm = localtime(&p->tbuf[j]); 191 strftime(ts, sizeof(ts), "%B %d %T", tm);
|
| /src/external/bsd/file/dist/src/ |
| print.c | 282 struct tm *tm, tmz; local 298 tm = localtime_r(&t, &tmz); 300 tm = gmtime_r(&t, &tmz); 302 if (tm == NULL) 304 pp = asctime_r(tm, buf); 322 struct tm tm; local 324 memset(&tm, 0, sizeof(tm)); 341 struct tm tm; local [all...] |
| /src/external/bsd/less/dist/lesstest/ |
| log.c | 31 struct tm* tm = gmtime(&now); local 34 tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday, 35 tm->tm_hour, tm->tm_min, tm->tm_sec);
|