Searched refs:tm (Results 1 - 12 of 12) sorted by relevance

/bind-9.11.3/lib/isc/include/isc/
H A Dtm.h12 /*! \file isc/tm.h
13 * Provides portable conversion routines for struct tm.
24 isc_tm_timegm(struct tm *tm);
26 * Convert a tm structure to time_t, using UTC rather than the local
31 isc_tm_strptime(const char *buf, const char *fmt, struct tm *tm);
33 * Parse a formatted date string into struct tm.
/bind-9.11.3/lib/isc/
H A Dtm.c45 #include <isc/tm.h>
49 * Portable conversion routines for struct tm, replacing
111 isc_tm_timegm(struct tm *tm) { argument
116 leapday = ((((tm->tm_year + 1900 ) % 4) == 0 &&
117 ((tm->tm_year + 1900 ) % 100) != 0) ||
118 ((tm->tm_year + 1900 ) % 400) == 0) ? 1 : 0;
121 yday = tm->tm_mday - 1;
122 for (i = 1; i <= tm->tm_mon; i++)
124 ret = tm
136 isc_tm_strptime(const char *buf, const char *fmt, struct tm *tm) argument
[all...]
/bind-9.11.3/lib/dns/
H A Dtime.c33 struct tm tm; local
46 tm.tm_year = 70;
48 if (tm.tm_year == 0)
50 tm.tm_year--;
51 secs = year_secs(tm.tm_year + 1900);
54 while ((secs = year_secs(tm.tm_year + 1900)) <= t) {
56 tm.tm_year++;
57 if (tm.tm_year + 1900 > 9999)
60 tm
[all...]
H A Dgen.c512 struct tm *tm; local
619 if ((tm = localtime(&now)) != NULL && tm->tm_year > 104) {
621 tm->tm_year + 1900);
H A Dupdate.c2036 struct tm *tm; local
2039 struct tm tm0;
2040 tm = localtime_r(&when, &tm0);
2042 tm = localtime(&when);
2044 return (((tm->tm_year + 1900) * 10000) +
2045 ((tm->tm_mon + 1) * 100) + tm->tm_mday);
/bind-9.11.3/bin/tests/net/
H A Ddriver.c36 struct tm tm; local
43 localtime_r(&t, &tm));
/bind-9.11.3/lib/isc/unix/
H A Dtime.c29 #include <isc/tm.h>
381 struct tm tm; local
391 flen = strftime(buf, len, "%d-%b-%Y %X", localtime_r(&now, &tm));
409 struct tm tm; local
423 gmtime_r(&now, &tm));
432 struct tm t_tm;
454 struct tm tm; local
476 struct tm tm; local
[all...]
/bind-9.11.3/lib/dns/tests/
H A Dupdate_test.c30 struct tm tm; local
32 memset(&tm, 0, sizeof(tm));
33 tm.tm_year = year - 1900;
34 tm.tm_mon = month - 1;
35 tm.tm_mday = day;
36 mystdtime = timegm(&tm) ;
/bind-9.11.3/lib/tests/
H A Dt_api.c599 struct tm *p;
601 struct tm tm; local
606 p = localtime_r(&t, &tm);
/bind-9.11.3/lib/isc/win32/
H A Dtime.c25 #include <isc/tm.h>
321 struct tm t_tm;
/bind-9.11.3/bin/dig/
H A Ddig.c246 struct tm tmnow;
/bind-9.11.3/
H A Dconfigure13356 if ((struct tm *) 0)

Completed in 116 milliseconds