/openbsd/gnu/usr.bin/perl/cpan/Time-Piece/t/ |
H A D | 02core.t | 196 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 D | 09locales.t | 63 # '%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 D | 06subclass.t | 23 my $piece = $class->strptime("2005-01-01", "%Y-%m-%d"); 64 my $piece = $class->strptime ("2006", "%Y");
|
H A D | 03compare.t | 8 @t = map Time::Piece->strptime($_, '%Y-%m-%d %H:%M'), @t;
|
H A D | 04mjd.t | 9 # epoch to unix time. To be more general we should use strptime
|
H A D | 07arith.t | 28 $t = Time::Piece->strptime("01 01 2010","%d %m %Y");
|
/openbsd/lib/libc/time/ |
H A D | Makefile.inc | 6 strptime.c wcsftime.c 7 MAN+= ctime.3 strftime.3 time2posix.3 tzfile.5 tzset.3 strptime.3 wcsftime.3
|
H A D | strptime.c | 86 strptime(const char *buf, const char *fmt, struct tm *tm) in strptime() function 90 DEF_WEAK(strptime);
|
/openbsd/regress/lib/libc/time/ |
H A D | Makefile | 3 SUBDIR+=strptime
|
/openbsd/lib/libc/hidden/ |
H A D | time.h | 45 PROTO_NORMAL(strptime);
|
/openbsd/usr.bin/chpass/ |
H A D | util.c | 71 t = strptime(p, "%B %d %Y", &tm); in atot()
|
/openbsd/usr.bin/touch/ |
H A D | touch.c | 295 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 D | main.c | 93 p = strptime(buf, format, &tm); in main()
|
/openbsd/include/ |
H A D | time.h | 130 char *strptime(const char *__restrict, const char *__restrict,
|
/openbsd/usr.sbin/nsd/ |
H A D | configure.ac | 529 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 D | config.h.in | 422 /* 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 D | Makefile.in | 241 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 D | parse.c | 546 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 D | config.h | 1422 #define strptime unbound_strptime macro 1424 char *strptime(const char *s, const char *format, struct tm *tm);
|
/openbsd/usr.bin/mandoc/ |
H A D | mandoc.c | 106 pp = strptime(p, fmt, &tm); in a2time()
|
/openbsd/bin/date/ |
H A D | date.c | 161 if (strptime(p, pformat, &tm) == NULL) { in setthetime()
|
/openbsd/sbin/dump/ |
H A D | itime.c | 288 str = strptime(un_buf, "%a %b %e %H:%M:%S %Y", &then); in makedumpdate()
|
/openbsd/usr.sbin/unbound/ |
H A D | configure.ac | 570 # 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 D | entries.c | 196 if (strptime(p, "%a %b %d %T %Y", &t) != NULL) { in cvs_ent_parse()
|
/openbsd/usr.bin/cal/ |
H A D | cal.c | 557 if ((cp = strptime(s, "%b", &tm)) != NULL && *cp == '\0') in parsemonth()
|