| /openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/gcc.dg/format/ |
| D | ext-3.c | 17 strftime (s, m, "%5C%-C%_C%0C", tp); in foo() 19 strftime (s, m, "%-5C%_5C%05C%-5d%_5d%05d%-5e%_5e%05e%-5G%_5G%05G", tp); in foo() 20 strftime (s, m, "%-5H%_5H%05H%-5I%_5I%05I%-5j%_5j%05j%-5m%_5m%05m", tp); in foo() 21 strftime (s, m, "%-5M%_5M%05M%-5S%_5S%05S%-5u%_5u%05u%-5U%_5U%05U", tp); in foo() 22 strftime (s, m, "%-5V%_5V%05V%-5w%_5w%05w%-5W%_5W%05W%-5Y%_5Y%05Y", tp); in foo() 24 strftime (s, m, "%-5k%_5k%05k%-5l%_5l%05l%-20s%_20s%020s", tp); in foo() 26 strftime (s, m, "%-5g%_5g%05g%-5y%_5y%05y", tp); /* { dg-warning "only last 2" "2-digit year" } */ in foo() 28 strftime (s, m, "%5a", tp); /* { dg-warning "width" "bad %a" } */ in foo() 29 strftime (s, m, "%-a", tp); /* { dg-warning "flag" "bad %a" } */ in foo() 30 strftime (s, m, "%_a", tp); /* { dg-warning "flag" "bad %a" } */ in foo() [all …]
|
| D | c99-strftime-1.c | 13 strftime (s, m, "%a%A%b%B%C%d%e%F%G%h%H%I%j%m%M%p%R%S%t%T%u%U%V%w%W%X%Y%z%Z%%", tp); in foo() 14 strftime (s, m, "%EC%EX%EY%Od%Oe%OH%OI%Om%OM%OS%Ou%OU%OV%Ow%OW", tp); in foo() 16 strftime (s, m, "%D", tp); /* { dg-warning "only last 2" "2-digit year" } */ in foo() 17 strftime (s, m, "%g", tp); /* { dg-warning "only last 2" "2-digit year" } */ in foo() 18 strftime (s, m, "%y", tp); /* { dg-warning "only last 2" "2-digit year" } */ in foo() 19 strftime (s, m, "%Oy", tp); /* { dg-warning "only last 2" "2-digit year" } */ in foo() 21 strftime (s, m, "%c", tp); /* { dg-warning "some locales" "2-digit year" } */ in foo() 22 strftime (s, m, "%Ec", tp); /* { dg-warning "some locales" "2-digit year" } */ in foo() 23 strftime (s, m, "%x", tp); /* { dg-warning "some locales" "2-digit year" } */ in foo() 24 strftime (s, m, "%Ex", tp); /* { dg-warning "some locales" "2-digit year" } */ in foo() [all …]
|
| D | c90-strftime-2.c | 12 strftime (s, m, "%C", tp); /* { dg-warning "C" "%C not in C90" } */ in foo() 13 strftime (s, m, "%D", tp); /* { dg-warning "C" "%D not in C90" } */ in foo() 15 strftime (s, m, "%e", tp); /* { dg-warning "C" "%e not in C90" } */ in foo() 16 strftime (s, m, "%F", tp); /* { dg-warning "C" "%F not in C90" } */ in foo() 17 strftime (s, m, "%g", tp); /* { dg-warning "C" "%g not in C90" } */ in foo() 19 strftime (s, m, "%G", tp); /* { dg-warning "C" "%G not in C90" } */ in foo() 20 strftime (s, m, "%h", tp); /* { dg-warning "C" "%h not in C90" } */ in foo() 21 strftime (s, m, "%n", tp); /* { dg-warning "C" "%n not in C90" } */ in foo() 22 strftime (s, m, "%r", tp); /* { dg-warning "C" "%r not in C90" } */ in foo() 23 strftime (s, m, "%R", tp); /* { dg-warning "C" "%R not in C90" } */ in foo() [all …]
|
| D | c99-strftime-2.c | 12 strftime (s, m, "%P", tp); /* { dg-warning "C" "strftime %P" } */ in foo() 14 strftime (s, m, "%k", tp); /* { dg-warning "C" "strftime %k" } */ in foo() 16 strftime (s, m, "%l", tp); /* { dg-warning "C" "strftime %l" } */ in foo() 18 strftime (s, m, "%s", tp); /* { dg-warning "C" "strftime %s" } */ in foo() 21 strftime (s, m, "%20Y", tp); /* { dg-warning "C" "strftime width" } */ in foo() 22 strftime (s, m, "%^A", tp); /* { dg-warning "C" "strftime flags" } */ in foo()
|
| D | c90-strftime-1.c | 13 strftime (s, m, "%a%A%b%B%d%H%I%j%m%M%p%S%U%w%W%X%Y%Z%%", tp); in foo() 15 strftime (s, m, "%y", tp); /* { dg-warning "only last 2" "2-digit year" } */ in foo() 17 strftime (s, m, "%c", tp); /* { dg-warning "some locales" "2-digit year" } */ in foo() 18 strftime (s, m, "%x", tp); /* { dg-warning "some locales" "2-digit year" } */ in foo()
|
| D | attr-2.c | 12 extern void tformatstrftime (const char *) __attribute__((format(strftime, 1, 0))); 20 extern void t__format__strftime (const char *) __attribute__((__format__(strftime, 1, 0)));
|
| D | no-y2k-1.c | 11 strftime (s, m, "%y%c%x", tp); in foo()
|
| /openbsd/src/gnu/usr.bin/perl/cpan/Time-Piece/t/ |
| D | 02core_dst.t | 60 # strftime tests 67 cmp_ok($t->strftime('%d'), '==', 9); 70 skip "can't strftime %D, %R, %T or %e on Win32", 1 if $is_win32; 71 cmp_ok($t->strftime('%D'), 'eq', '07/09/13'); # Yech! 74 skip "can't strftime %D, %R, %T or %e on Win32", 1 if $is_win32; 75 skip "can't strftime %e on QNX", 1 if $is_qnx; 76 cmp_ok($t->strftime('%e'), 'eq', ' 9'); # should test with < 10 80 cmp_ok($t->strftime('%H'), 'eq', '12'); # should test with < 10 82 cmp_ok($t->strftime('%I'), 'eq', '12'); # should test with < 10 83 cmp_ok($t->strftime('%j'), '==', 190 ); # why ->yday+1 ? [all …]
|
| D | 02core.t | 57 cmp_ok($lt->strftime("%Z"), 'eq', 'EST'); 64 # strftime tests 71 cmp_ok($t->strftime('%d'), '==', 29); 73 cmp_ok($t->strftime('%D'), 'eq', '02/29/00'); # Yech! 74 cmp_ok($t->strftime('%e'), 'eq', '29'); # should test with < 10 77 cmp_ok($t->strftime('%H'), 'eq', '12'); # should test with < 10 79 cmp_ok($t->strftime('%I'), 'eq', '12'); # should test with < 10 80 cmp_ok($t->strftime('%j'), '==', 60 ); # why ->yday+1 ? 81 cmp_ok($t->strftime('%M'), 'eq', '34'); # should test with < 10 86 cmp_ok($t->strftime('%R'), 'eq', '12:34'); # should test with > 12 [all …]
|
| D | 09locales.t | 44 $parsed->strftime($strp_format), 46 $t->strftime($strp_format), 49 cmp_ok( $parsed->strftime(), 'eq', $t->strftime(), 78 my $t_str = $t->strftime($strp_format); 99 my $t_str = $t->strftime($strp_format);
|
| /openbsd/src/gnu/usr.bin/perl/ext/POSIX/t/ |
| D | time.t | 33 is(strftime("%Y-%m-%d %H:%M:%S", 0, 30, 2, 10, 2, 124, 0, 0, 0), 87 is(munge_illegal_format_result(strftime($illegal_format, 101 is(ctime($jan_16), strftime($ctime_format, CORE::localtime($jan_16)), 103 is(ctime($jan_16), strftime($ctime_format, POSIX::localtime($jan_16)), 108 is(ord strftime($ss, CORE::localtime), 223, 110 is(ord strftime($ss, POSIX::localtime(time)), 116 isnt(strftime($zh_format, CORE::gmtime($jan_16)), 142 is(strftime($zh_format, CORE::gmtime($jan_16)), 145 is(strftime($zh_format, POSIX::gmtime($jan_16)), 172 is(ctime($jan_16), strftime($ctime_format, CORE::localtime($jan_16)), [all …]
|
| /openbsd/src/lib/libc/time/ |
| D | Makefile.inc | 5 SRCS+= asctime.c difftime.c localtime.c strftime.c strftime_l.c \ 7 MAN+= ctime.3 strftime.3 time2posix.3 tzfile.5 tzset.3 strptime.3 wcsftime.3
|
| /openbsd/src/gnu/usr.bin/perl/cpan/podlators/t/man/ |
| D | devise-date.t | 33 strftime('%Y-%m-%d', gmtime()), 63 strftime('%Y-%m-%d', gmtime()),
|
| /openbsd/src/gnu/lib/libstdc++/libstdc++/include/c_std/ |
| D | std_ctime.h | 62 #undef strftime 78 using ::strftime;
|
| /openbsd/src/gnu/gcc/libstdc++-v3/include/c_std/ |
| D | std_ctime.h | 62 #undef strftime 78 using ::strftime;
|
| /openbsd/src/gnu/lib/libstdc++/libstdc++/include/c_compatibility/ |
| D | time.h | 44 #undef strftime 58 using std::strftime;
|
| /openbsd/src/gnu/gcc/libstdc++-v3/include/c_compatibility/ |
| D | time.h | 44 #undef strftime 58 using std::strftime;
|
| /openbsd/src/gnu/llvm/clang/utils/CIndex/ |
| D | completion_logger_server.py | 5 from time import strftime 34 f.write("\"time\": \"{0}\"".format(datetime.datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S')))
|
| /openbsd/src/usr.sbin/slaacctl/ |
| D | slaacctl.c | 224 strftime(whenbuf, sizeof(whenbuf), "%F %T", t); in show_interface_msg() 294 strftime(whenbuf, sizeof(whenbuf), "%F %T", t); in show_interface_msg() 323 strftime(whenbuf, sizeof(whenbuf), "%F %T", t); in show_interface_msg() 361 strftime(whenbuf, sizeof(whenbuf), "%F %T", t); in show_interface_msg()
|
| /openbsd/src/usr.bin/calendar/ |
| D | day.c | 83 if (strftime(m->print_date, sizeof(m->print_date), in fill_print_date() 97 l = strftime(buf, sizeof(buf), "%a", &tm); in setnnames() 106 l = strftime(buf, sizeof(buf), "%A", &tm); in setnnames() 118 l = strftime(buf, sizeof(buf), "%b", &tm); in setnnames() 127 l = strftime(buf, sizeof(buf), "%B", &tm); in setnnames() 174 header[5].iov_len = strftime(dayname, sizeof(dayname), "%A", tp); in settime()
|
| /openbsd/src/gnu/llvm/llvm/lib/Support/ |
| D | Chrono.cpp | 46 strftime(Buffer, sizeof(Buffer), "%Y-%m-%d %H:%M:%S", <); in operator <<() 89 size_t Len = strftime(Buffer, sizeof(Buffer), Format.c_str(), <); in format()
|
| /openbsd/src/gnu/usr.bin/perl/cpan/Time-Piece/ |
| D | Piece.xs | 964 len = strftime(tmpbuf, TP_BUF_SIZE, fmt, &mytm); 990 buflen = strftime(buf, bufsize, fmt, &mytm); 1121 len = strftime(buf, TP_BUF_SIZE, "%a", &mytm); 1124 len = strftime(buf, TP_BUF_SIZE, "%A", &mytm); 1132 len = strftime(buf, TP_BUF_SIZE, "%b", &mytm); 1135 len = strftime(buf, TP_BUF_SIZE, "%B", &mytm); 1147 len = strftime(buf, TP_BUF_SIZE, "%p", &mytm); 1150 len = strftime(buf, TP_BUF_SIZE, "%p", &mytm);
|
| /openbsd/src/usr.sbin/dhcpd/ |
| D | db.c | 84 rsltsz = strftime(tbuf, sizeof(tbuf), DB_TIMEFMT, in write_lease() 89 rsltsz = strftime(tbuf, sizeof(tbuf), DB_TIMEFMT, in write_lease()
|
| /openbsd/src/gnu/llvm/libcxx/include/ |
| D | ctime | 41 size_t strftime(char* restrict s, size_t maxsize, const char* restrict format, 80 using ::strftime _LIBCPP_USING_IF_EXISTS;
|
| /openbsd/src/sbin/shutdown/ |
| D | shutdown.c | 227 strftime(when, sizeof(when), "%a %b %e %T %Z %Y", lt); in main() 349 strftime(when, sizeof(when), "%H:%M %Z", lt); in timewarn() 571 strftime(when, sizeof(when), "%a %b %e %T %Z %Y", lt); in getoffset() 609 strftime(when, sizeof(when), "at %H:%M %Z", tm); in nolog()
|