Searched refs:tm (Results 101 - 125 of 472) sorted by relevance

1234567891011>>

/freebsd-current/contrib/bsddialog/examples_library/
H A Dtimebox.c21 struct tm *localtm;
H A Dcalendar.c21 struct tm *localtm;
/freebsd-current/contrib/blocklist/bin/
H A Dsupport.c91 struct tm tm; local
92 if (localtime_r(&t, &tm) == NULL)
95 strftime(b, l, "%Y/%m/%d %H:%M:%S", &tm);
/freebsd-current/contrib/nvi/common/
H A Dcut.c64 cut(SCR *sp, CHAR_T *namep, MARK *fm, MARK *tm, int flags) argument
97 (LF_ISSET(CUT_LINEMODE) || fm->lno != tm->lno))) {
108 (LF_ISSET(CUT_LINEMODE) || fm->lno != tm->lno))) {
135 for (lno = fm->lno; lno <= tm->lno; ++lno)
143 if (cut_line(sp, fm->lno, fm->cno, fm->lno != tm->lno ?
144 ENTIRE_LINE : (tm->cno - fm->cno) + 1, cbp))
148 for (lno = fm->lno; ++lno < tm->lno;)
153 if (tm->lno != fm->lno &&
154 cut_line(sp, lno, 0, tm->cno + 1, cbp))
/freebsd-current/contrib/ldns/
H A Dutil.c194 ldns_mktime_from_utc(const struct tm *tm) argument
196 int year = 1900 + tm->tm_year;
203 for (i = 0; i < tm->tm_mon; ++i) {
206 if (tm->tm_mon > 1 && is_leap_year(year)) {
209 days += tm->tm_mday - 1;
211 hours = days * 24 + tm->tm_hour;
212 minutes = hours * 60 + tm->tm_min;
213 seconds = minutes * 60 + tm->tm_sec;
219 mktime_from_utc(const struct tm *t argument
[all...]
/freebsd-current/contrib/tzcode/
H A Dprivate.h683 DEPRECATED_IN_C23 char *asctime(struct tm const *);
684 char *asctime_r(struct tm const *restrict, char *restrict);
689 struct tm const *restrict);
692 struct tm const *restrict, locale_t);
694 struct tm *gmtime(time_t const *);
695 struct tm *gmtime_r(time_t const *restrict, struct tm *restrict);
696 struct tm *localtime(time_t const *);
697 struct tm *localtime_r(time_t const *restrict, struct tm *restric
[all...]
H A Dstrftime.c109 static char * _fmt(const char *, const struct tm *, char *, const char *,
120 struct tm const *restrict t,
130 struct tm const *restrict t)
164 _fmt(const char *format, const struct tm *t, char *pt,
319 struct tm tm; local
324 tm.tm_sec = t->tm_sec;
325 tm.tm_min = t->tm_min;
326 tm.tm_hour = t->tm_hour;
327 tm
[all...]
/freebsd-current/contrib/openbsm/bin/auditreduce/
H A Dauditreduce.c640 struct tm tm; local
667 bzero(&tm, sizeof(tm));
668 strptime(optarg, "%Y%m%d%H%M%S", &tm);
670 &tm);
672 p_atime = mktime(&tm);
680 bzero(&tm, sizeof(tm));
681 strptime(optarg, "%Y%m%d%H%M%S", &tm);
[all...]
/freebsd-current/crypto/heimdal/lib/asn1/
H A Dder_get.c444 struct tm tm; local
446 memset(&tm, 0, sizeof(tm));
448 &tm.tm_year, &tm.tm_mon, &tm.tm_mday, &tm.tm_hour,
449 &tm.tm_min, &tm
[all...]
H A Dder_put.c501 struct tm tm; local
508 if (_der_gmtime(t, &tm) == NULL)
512 tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday,
513 tm.tm_hour, tm.tm_min, tm.tm_sec);
516 tm
[all...]
/freebsd-current/bin/date/
H A Dvary.c54 static int adjhour(struct tm *, char, int64_t, int);
57 domktime(struct tm *t, char type)
104 daysinmonth(const struct tm *t)
127 adjyear(struct tm *t, char type, int64_t val, int mk)
141 t->tm_year -= 1900; /* struct tm holds years since 1900 */
148 adjmon(struct tm *t, char type, int64_t val, int istext, int mk)
208 adjday(struct tm *t, char type, int64_t val, int mk)
252 adjwday(struct tm *t, char type, int64_t val, int istext, int mk)
288 adjhour(struct tm *t, char type, int64_t val, int mk)
333 adjmin(struct tm *
[all...]
/freebsd-current/contrib/libarchive/libarchive/
H A Darchive_getdate.c696 struct tm *ltime;
698 struct tm tmbuf;
744 struct tm *ltime;
746 struct tm tmbuf;
772 struct tm *tm; local
775 struct tm tmbuf;
780 tm = gmtime_s(&tmbuf, &t) ? NULL : &tmbuf;
782 tm = gmtime_r(&t, &tmbuf);
784 tm
798 struct tm *tm; local
945 struct tm local, *tm; local
[all...]
/freebsd-current/cddl/contrib/opensolaris/lib/pyzfs/common/
H A Dholds.py67 for tag, tm in ds.get_holds().iteritems():
69 "timestamp": time.ctime(tm)}
/freebsd-current/usr.sbin/cron/cron/
H A Dexterns.h76 #define TZONE(tm) tzname[(tm).tm_isdst]
/freebsd-current/contrib/llvm-project/libcxx/modules/std/
H A Dctime.inc16 using std::tm;
/freebsd-current/contrib/libarchive/cpio/test/
H A Dtest_option_t.c38 struct tm *tmptr;
40 struct tm tmbuf;
/freebsd-current/sys/sys/
H A Defi.h256 struct efi_tm *tm);
257 int (*set_waketime)(uint8_t enable, struct efi_tm *tm);
291 static inline int efi_get_time(struct efi_tm *tm) argument
296 return (active_efi_ops->get_time(tm));
315 static inline int efi_set_time(struct efi_tm *tm) argument
320 return (active_efi_ops->set_time(tm));
324 struct efi_tm *tm)
328 return (active_efi_ops->get_waketime(enabled, pending, tm));
331 static inline int efi_set_waketime(uint8_t enable, struct efi_tm *tm) argument
335 return (active_efi_ops->set_waketime(enable, tm));
323 efi_get_waketime(uint8_t *enabled, uint8_t *pending, struct efi_tm *tm) argument
[all...]
/freebsd-current/contrib/wpa/src/utils/
H A Dos_unix.c142 struct tm tm, *tm1; local
151 memset(&tm, 0, sizeof(tm));
152 tm.tm_year = year - 1900;
153 tm.tm_mon = month - 1;
154 tm.tm_mday = day;
155 tm.tm_hour = hour;
156 tm.tm_min = min;
157 tm
179 os_gmtime(os_time_t t, struct os_tm *tm) argument
[all...]
/freebsd-current/usr.bin/last/
H A Dlast.c223 struct tm *tm; local
249 tm = localtime(&t);
250 (void) strftime(ct, sizeof(ct), "%+", tm);
339 struct tm *tm; local
347 tm = localtime(&t);
350 (yflag ? "%a %b %e %Y %R" : "%a %b %e %R"), tm);
381 tm = localtime(&tt->logout);
382 (void) strftime(ct, sizeof(ct), "%R", tm);
[all...]
/freebsd-current/crypto/openssl/crypto/x509/
H A Dx509_set.c64 int ossl_x509_set1_time(ASN1_TIME **ptm, const ASN1_TIME *tm) argument
68 if (in != tm) {
69 in = ASN1_STRING_dup(tm);
78 int X509_set1_notBefore(X509 *x, const ASN1_TIME *tm) argument
82 return ossl_x509_set1_time(&x->cert_info.validity.notBefore, tm);
85 int X509_set1_notAfter(X509 *x, const ASN1_TIME *tm) argument
89 return ossl_x509_set1_time(&x->cert_info.validity.notAfter, tm);
/freebsd-current/contrib/sendmail/libmilter/
H A Dmonitor.c53 ** tm -- maximum execution time for a thread
60 smfi_set_max_exec_time(tm)
61 unsigned int tm;
63 Mon_exec_time = tm;
/freebsd-current/crypto/heimdal/kadmin/
H A Dutil.c180 struct tm tm, tm2; local
182 memset (&tm, 0, sizeof (tm));
207 p = strptime (str, "%Y-%m-%d", &tm);
218 tm.tm_hour = tm2.tm_hour;
219 tm.tm_min = tm2.tm_min;
220 tm.tm_sec = tm2.tm_sec;
223 tm.tm_hour = 23;
224 tm
[all...]
/freebsd-current/lib/libutil/
H A Dlogin_cap.h146 struct tm;
150 int in_ltm(const login_time_t *, struct tm *, time_t *);
151 int in_ltms(const login_time_t *, struct tm *, time_t *);
/freebsd-current/contrib/nvi/ex/
H A Dex_move.c34 MARK fm1, fm2, m, tm; local
58 tm.lno = cmdp->lineno;
59 tm.cno = 0;
60 if (put(sp, &cb, NULL, &tm, &m, 1))
/freebsd-current/contrib/unbound/sldns/
H A Dparseutil.c72 sldns_mktime_from_utc(const struct tm *tm) argument
74 int year = 1900 + tm->tm_year;
81 for (i = 0; i < tm->tm_mon; ++i) {
84 if (tm->tm_mon > 1 && is_leap_year(year)) {
87 days += tm->tm_mday - 1;
89 hours = days * 24 + tm->tm_hour;
90 minutes = hours * 60 + tm->tm_min;
91 seconds = minutes * 60 + tm->tm_sec;
99 sldns_year_and_yday_from_days_since_epoch(int64_t days, struct tm *resul
[all...]

Completed in 414 milliseconds

1234567891011>>