Searched refs:tm (Results 26 - 50 of 472) sorted by relevance

1234567891011>>

/freebsd-current/contrib/file/src/
H A Dcdf_time.c101 struct tm tm; local
111 tm.tm_sec = CAST(int, t % 60);
114 tm.tm_min = CAST(int, t % 60);
117 tm.tm_hour = CAST(int, t % 24);
121 tm.tm_year = CAST(int, CDF_BASE_YEAR + (t / 365));
123 rdays = cdf_getdays(tm.tm_year);
125 tm.tm_mday = cdf_getday(tm.tm_year, CAST(int, t));
126 tm
154 struct tm tm; local
[all...]
H A Dasctime_r.c12 asctime_r(const struct tm *t, char *dst)
/freebsd-current/contrib/ldns/compat/
H A Dtimegm.c14 timegm (struct tm *tm) { argument
21 ret = mktime(tm);
/freebsd-current/usr.sbin/bsnmpd/modules/snmp_hostres/
H A Dhostres_snmp.c185 * Make an SNMP DateAndTime from a struct tm. This should be in the library.
188 make_date_time(u_char *str, const struct tm *tm, u_int decisecs) argument
191 str[0] = (u_char)((tm->tm_year + 1900) >> 8);
192 str[1] = (u_char)(tm->tm_year + 1900);
193 str[2] = tm->tm_mon + 1;
194 str[3] = tm->tm_mday;
195 str[4] = tm->tm_hour;
196 str[5] = tm->tm_min;
197 str[6] = tm
[all...]
/freebsd-current/crypto/openssh/openbsd-compat/
H A Dstrptime.c57 static char *_strptime(const char *, const char *, struct tm *, int);
61 strptime(const char *buf, const char *fmt, struct tm *tm) argument
63 return(_strptime(buf, fmt, tm, 1));
67 _strptime(const char *buf, const char *fmt, struct tm *tm, int initialize) argument
126 if (!(bp = _strptime(bp, _ctloc(d_t_fmt), tm, 0)))
132 if (!(bp = _strptime(bp, "%m/%d/%y", tm, 0)))
138 if (!(bp = _strptime(bp, "%H:%M", tm, 0)))
144 if (!(bp = _strptime(bp, "%I:%M:%S %p", tm,
[all...]
/freebsd-current/sys/dev/efidev/
H A Defirtc.c64 struct efi_tm tm; local
72 if ((error = efi_get_time(&tm)) != 0) {
132 struct efi_tm tm; local
135 error = efi_get_time(&tm);
139 ct.sec = tm.tm_sec;
140 ct.min = tm.tm_min;
141 ct.hour = tm.tm_hour;
142 ct.day = tm.tm_mday;
143 ct.mon = tm.tm_mon;
144 ct.year = tm
155 struct efi_tm tm; local
[all...]
/freebsd-current/lib/libc/stdtime/
H A Dstrptime.c53 static char * _strptime(const char *, const char *, struct tm *, int *, locale_t);
79 _strptime(const char *buf, const char *fmt, struct tm *tm, int *GMTp, argument
125 buf = _strptime(buf, tptr->date_fmt, tm, GMTp, locale);
150 buf = _strptime(buf, tptr->c_fmt, tm, GMTp, locale);
157 buf = _strptime(buf, "%m/%d/%y", tm, GMTp, locale);
176 buf = _strptime(buf, "%Y-%m-%d", tm, GMTp, locale);
183 buf = _strptime(buf, "%H:%M", tm, GMTp, locale);
189 buf = _strptime(buf, tptr->ampm_fmt, tm, GMTp, locale);
195 buf = _strptime(buf, "%H:%M:%S", tm, GMT
692 strptime_l(const char * __restrict buf, const char * __restrict fmt, struct tm * __restrict tm, locale_t loc) argument
711 strptime(const char * __restrict buf, const char * __restrict fmt, struct tm * __restrict tm) argument
[all...]
/freebsd-current/contrib/ntp/libntp/
H A Dprettydate.c61 static struct tm *
66 struct tm *tm = NULL; local
130 while ((tm = (*(local ? localtime : gmtime))(&ts)) == NULL)
142 /* 'tm' surely not NULL here! */
143 INSIST(tm != NULL);
145 tm->tm_year += folds * SOLAR_CYCLE_YEARS;
146 if (tm->tm_year <= 0 || tm->tm_year >= 200)
150 return tm;
165 struct tm *tm; local
[all...]
/freebsd-current/crypto/openssl/crypto/asn1/
H A Da_gentm.c24 static int asn1_generalizedtime_to_tm(struct tm *tm, argument
30 return ossl_asn1_time_to_tm(tm, d);
66 struct tm *ts;
67 struct tm data;
81 int ASN1_GENERALIZEDTIME_print(BIO *bp, const ASN1_GENERALIZEDTIME *tm) argument
83 if (tm->type != V_ASN1_GENERALIZEDTIME)
85 return ASN1_TIME_print(bp, tm);
H A Da_utctm.c20 int ossl_asn1_utctime_to_tm(struct tm *tm, const ASN1_UTCTIME *d)
25 return ossl_asn1_time_to_tm(tm, d);
60 struct tm *ts;
61 struct tm data;
77 struct tm stm, ttm;
96 int ASN1_UTCTIME_print(BIO *bp, const ASN1_UTCTIME *tm) argument
98 if (tm->type != V_ASN1_UTCTIME)
100 return ASN1_TIME_print(bp, tm);
H A Da_time.c50 static void determine_days(struct tm *tm) argument
55 int y = tm->tm_year + 1900;
56 int m = tm->tm_mon;
57 int d = tm->tm_mday;
60 tm->tm_yday = ydays[m] + d - 1;
63 tm->tm_yday += leap_year(y);
73 tm->tm_wday = (d + (13 * m) / 5 + y + y / 4 + c / 4 + 5 * c + 6) % 7;
76 int ossl_asn1_time_to_tm(struct tm *tm, cons argument
356 struct tm tm; local
383 struct tm tm; local
441 ASN1_TIME_to_tm(const ASN1_TIME *s, struct tm *tm) argument
474 ASN1_TIME_print(BIO *bp, const ASN1_TIME *tm) argument
480 ASN1_TIME_print_ex(BIO *bp, const ASN1_TIME *tm, unsigned long flags) argument
488 ossl_asn1_time_print_ex(BIO *bp, const ASN1_TIME *tm, unsigned long flags) argument
572 struct tm tm; local
[all...]
/freebsd-current/include/xlocale/
H A D_time.h45 const struct tm * __restrict, locale_t) __strftimelike(3, 0);
54 struct tm * __restrict, locale_t);
/freebsd-current/include/
H A Dtime.h98 struct tm { struct
117 char *asctime(const struct tm *);
124 struct tm *gmtime(const time_t *);
125 struct tm *localtime(const time_t *);
126 time_t mktime(struct tm *);
128 const struct tm * __restrict);
156 char *asctime_r(const struct tm *, char *);
158 struct tm *gmtime_r(const time_t *, struct tm *);
159 struct tm *localtime_
[all...]
/freebsd-current/contrib/ntp/ntpd/
H A Drefclock_pcf.c137 struct tm tm, *tp; local
148 ZERO(tm);
150 tm.tm_mday = buf[11] * 10 + buf[10];
151 tm.tm_mon = buf[13] * 10 + buf[12] - 1;
152 tm.tm_year = buf[15] * 10 + buf[14];
153 tm.tm_hour = buf[7] * 10 + buf[6];
154 tm.tm_min = buf[5] * 10 + buf[4];
155 tm.tm_sec = buf[3] * 10 + buf[2];
156 tm
[all...]
/freebsd-current/contrib/nvi/common/
H A Ddelete.c32 del(SCR *sp, MARK *fm, MARK *tm, int lmode) argument
43 for (lno = tm->lno; lno >= fm->lno; --lno) {
59 if (tm->lno >= lno) {
60 if (tm->lno == lno) {
63 eof = tm->cno != ENTIRE_LINE && tm->cno >= len ? 1 : 0;
67 for (lno = tm->lno; lno > fm->lno; --lno) {
86 if (tm->lno == fm->lno) {
93 MEMCPY(bp + fm->cno, p + (tm->cno + 1),
94 len - (tm
[all...]
/freebsd-current/crypto/heimdal/lib/asn1/
H A Dder_locl.h58 time_t _der_timegm (struct tm *);
59 struct tm * _der_gmtime(time_t t, struct tm *);
H A Dder-private.h55 struct tm *
58 struct tm */*tm*/);
/freebsd-current/crypto/heimdal/lib/roken/
H A Dstrpftime-test.c236 struct tm *tm; local
238 tm = gmtime (&tests[i].t);
243 struct tm tm2;
246 len = strftime (buf, sizeof(buf), tests[i].vals[j].format, tm);
282 struct tm tm; local
283 memset(&tm, 0, sizeof(tm));
284 strptime ("200505", "%Y%m", &tm);
[all...]
/freebsd-current/sys/contrib/openzfs/lib/libspl/
H A Dtimestamp.c57 struct tm tm; local
60 len = strftime(dstr, sizeof (dstr), fmt, localtime_r(&t, &tm));
/freebsd-current/contrib/llvm-project/lldb/include/lldb/Host/
H A DTime.h20 extern time_t timegm(struct tm *t);
/freebsd-current/bin/date/
H A Dvary.h33 extern const struct vary *vary_apply(const struct vary *v, struct tm *t);
/freebsd-current/sys/sys/
H A Dterminal.h144 typedef void tc_cursor_t(struct terminal *tm, const term_pos_t *p);
145 typedef void tc_putchar_t(struct terminal *tm, const term_pos_t *p,
147 typedef void tc_fill_t(struct terminal *tm, const term_rect_t *r,
149 typedef void tc_copy_t(struct terminal *tm, const term_rect_t *r,
151 typedef void tc_pre_input_t(struct terminal *tm);
152 typedef void tc_post_input_t(struct terminal *tm);
153 typedef void tc_param_t(struct terminal *tm, int cmd, unsigned int arg);
154 typedef void tc_done_t(struct terminal *tm);
156 typedef void tc_cnprobe_t(struct terminal *tm, struct consdev *cd);
157 typedef int tc_cngetc_t(struct terminal *tm);
[all...]
/freebsd-current/sbin/dump/
H A Dunctime.c43 struct tm then;
/freebsd-current/usr.bin/systat/
H A Dkeyboard.c53 struct timeval last, intvl, now, tm; local
66 tm.tv_sec = last.tv_sec + intvl.tv_sec - now.tv_sec;
67 tm.tv_usec = last.tv_usec + intvl.tv_usec - now.tv_usec;
68 while (tm.tv_usec < 0) {
69 tm.tv_usec += 1000000;
70 tm.tv_sec--;
72 while (tm.tv_usec >= 1000000) {
73 tm.tv_usec -= 1000000;
74 tm.tv_sec++;
76 if (tm
[all...]
/freebsd-current/crypto/heimdal/lib/krb5/
H A Dtime.c112 struct tm *tm; local
114 tm = gmtime (&t);
116 tm = localtime(&t);
117 if(tm == NULL ||
118 strftime(s, len, include_time ? context->time_fmt : context->date_fmt, tm) == 0)

Completed in 134 milliseconds

1234567891011>>