Home
last modified time | relevance | path

Searched refs:strptime (Results 1 – 25 of 49) sorted by relevance

12

/openbsd/gnu/usr.bin/perl/cpan/Time-Piece/t/
H A D02core.t196 cmp_ok(Time::Piece->strptime("2002/06/10 0", '%Y/%m/%d %H')->week, '==', 24);
197 cmp_ok(Time::Piece->strptime("2002/06/10 1", '%Y/%m/%d %H')->week, '==', 24);
198 cmp_ok(Time::Piece->strptime("2002/06/10 2", '%Y/%m/%d %H')->week, '==', 24);
199 cmp_ok(Time::Piece->strptime("2002/06/10 12", '%Y/%m/%d %H')->week, '==', 24);
200 cmp_ok(Time::Piece->strptime("2002/06/10 13", '%Y/%m/%d %H')->week, '==', 24);
204 # Test that strptime populates all relevant fields
205 cmp_ok(Time::Piece->strptime("2002/07/10", '%Y/%m/%d')->wday, '==', 4);
206 cmp_ok(Time::Piece->strptime("2002/12/31", '%Y/%m/%d')->yday, '==', 364);
207 cmp_ok(Time::Piece->strptime("2002/07/10", '%Y/%m/%d')->isdst, '==', -1);
211 Time::Piece->strptime('12212', "%y%j")->ymd(),
[all …]
H A D09locales.t63 # '%u %U %Y %T', #%U,W,V currently skipped inside strptime
81 eval { $parsed = $t->strptime( $t_str, $strp_format ); };
82 skip "gmtime strptime parse failed", 3 if $@;
102 eval { $parsed = $t->strptime( $t_str, $strp_format ); };
103 skip "localtime strptime parse failed", 3 if $@;
H A D06subclass.t23 my $piece = $class->strptime("2005-01-01", "%Y-%m-%d");
64 my $piece = $class->strptime ("2006", "%Y");
H A D03compare.t8 @t = map Time::Piece->strptime($_, '%Y-%m-%d %H:%M'), @t;
H A D04mjd.t9 # epoch to unix time. To be more general we should use strptime
H A D07arith.t28 $t = Time::Piece->strptime("01 01 2010","%d %m %Y");
/openbsd/lib/libc/time/
H A DMakefile.inc6 strptime.c wcsftime.c
7 MAN+= ctime.3 strftime.3 time2posix.3 tzfile.5 tzset.3 strptime.3 wcsftime.3
H A Dstrptime.c86 strptime(const char *buf, const char *fmt, struct tm *tm) in strptime() function
90 DEF_WEAK(strptime);
/openbsd/regress/lib/libc/time/
H A DMakefile3 SUBDIR+=strptime
/openbsd/lib/libc/hidden/
H A Dtime.h45 PROTO_NORMAL(strptime);
/openbsd/usr.bin/chpass/
H A Dutil.c71 t = strptime(p, "%B %d %Y", &tm); in atot()
/openbsd/usr.bin/touch/
H A Dtouch.c295 p = strptime(arg, "%F", &tm); in stime_argd()
298 p = strptime(p + 1, "%T", &tm); in stime_argd()
/openbsd/regress/lib/libc/time/strptime/
H A Dmain.c93 p = strptime(buf, format, &tm); in main()
/openbsd/include/
H A Dtime.h130 char *strptime(const char *__restrict, const char *__restrict,
/openbsd/usr.sbin/nsd/
H A Dconfigure.ac529 AC_MSG_CHECKING(whether strptime needs defines)
534 int testing (void) { struct tm t; const char *timestr="201201"; return strptime(timestr, "%Y%m", &t…
546 AC_DEFINE_UNQUOTED([STRPTIME_NEEDS_DEFINES], 1, [strptime is available from time.h with some define…
552 # check wether strptime also works
555 AC_MSG_CHECKING(whether strptime works)
561 res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
570 AC_LIBOBJ(strptime)
572 AC_DEFINE_UNQUOTED([STRPTIME_WORKS], 1, [use default strptime.])
842 AC_REPLACE_FUNCS(strptime)
1372 char *strptime(const char *s, const char *format, struct tm *tm);
[all …]
H A Dconfig.h.in422 /* Define to 1 if you have the `strptime' function. */
609 /* strptime is available from time.h with some defines. */
612 /* use default strptime. */
1035 char *strptime(const char *s, const char *format, struct tm *tm);
1040 #define strptime(a,b,c) nsd_strptime((a),(b),(c)) macro
H A DMakefile.in241 strptime.o: $(srcdir)/compat/strptime.c
242 $(COMPILE) -c $(srcdir)/compat/strptime.c
580 strptime.o: $(srcdir)/compat/strptime.c
/openbsd/usr.sbin/dhcpd/
H A Dparse.c546 p = strptime(timestr, DB_TIMEFMT, &tm); in parse_date()
548 p = strptime(timestr, OLD_DB_TIMEFMT, &tm); in parse_date()
/openbsd/sbin/unwind/libunbound/
H A Dconfig.h1422 #define strptime unbound_strptime macro
1424 char *strptime(const char *s, const char *format, struct tm *tm);
/openbsd/usr.bin/mandoc/
H A Dmandoc.c106 pp = strptime(p, fmt, &tm); in a2time()
/openbsd/bin/date/
H A Ddate.c161 if (strptime(p, pformat, &tm) == NULL) { in setthetime()
/openbsd/sbin/dump/
H A Ditime.c288 str = strptime(un_buf, "%a %b %e %H:%M:%S %Y", &then); in makedumpdate()
/openbsd/usr.sbin/unbound/
H A Dconfigure.ac570 # check whether strptime also works
573 AC_MSG_CHECKING(whether strptime works)
579 res = strptime("2010-07-15T00:00:00+00:00", "%t%Y%t-%t%m%t-%t%d%tT%t%H%t:%t%M%t:%t%S%t", &tm);
581 res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
590 AC_LIBOBJ(strptime)
592 AC_DEFINE_UNQUOTED([STRPTIME_WORKS], 1, [use default strptime.])
604 AC_CHECK_FUNCS([strptime],[AC_CHECK_STRPTIME_WORKS],[AC_LIBOBJ([strptime])])
2251 #define strptime unbound_strptime
2253 char *strptime(const char *s, const char *format, struct tm *tm);
/openbsd/usr.bin/cvs/
H A Dentries.c196 if (strptime(p, "%a %b %d %T %Y", &t) != NULL) { in cvs_ent_parse()
/openbsd/usr.bin/cal/
H A Dcal.c557 if ((cp = strptime(s, "%b", &tm)) != NULL && *cp == '\0') in parsemonth()

12