/freebsd/contrib/kyua/utils/ |
H A D | datetime_test.cpp | 273 ATF_REQUIRE_EQ("2011", ts1.strftime("%Y")); in ATF_TEST_CASE_BODY() 274 ATF_REQUIRE_EQ("2011", ts2.strftime("%Y")); in ATF_TEST_CASE_BODY() 275 ATF_REQUIRE_EQ("2012", ts3.strftime("%Y")); in ATF_TEST_CASE_BODY() 277 ATF_REQUIRE_EQ("2011", ts1.strftime("%Y")); in ATF_TEST_CASE_BODY() 286 ATF_REQUIRE_EQ("2012-02-09 23:15:51", ts.strftime("%Y-%m-%d %H:%M:%S")); in ATF_TEST_CASE_BODY() 297 datetime::timestamp::now().strftime("%Y-%m-%d %H:%M:%S")); in ATF_TEST_CASE_BODY() 302 datetime::timestamp::now().strftime("%Y-%m-%d %H:%M:%S")); in ATF_TEST_CASE_BODY() 304 datetime::timestamp::now().strftime("%Y-%m-%d %H:%M:%S")); in ATF_TEST_CASE_BODY() 322 ATF_REQUIRE(::strftime(buf, sizeof(buf), "%Y-%m-%d", &data) != 0); in ATF_TEST_CASE_BODY() 323 ATF_REQUIRE_EQ(buf, now.strftime("%Y-%m-%d")); in ATF_TEST_CASE_BODY() [all …]
|
H A D | datetime.cpp | 384 datetime::timestamp::strftime(const std::string& format) const in strftime() function in datetime::timestamp 396 if (::strftime(buf, sizeof(buf), format.c_str(), &timedata) == 0) in strftime() 408 return F("%s.%06sZ") % strftime("%Y-%m-%dT%H:%M:%S") % _pimpl->data.tv_usec; in to_iso8601_in_utc()
|
/freebsd/usr.bin/finger/ |
H A D | sprint.c | 124 (void)strftime(p, sizeof(p), "%a", lc); in sflag_print() 126 (void)strftime(p, sizeof(p), in sflag_print() 131 (void)strftime(p, sizeof(p), "%Y", lc); in sflag_print() 133 (void)strftime(p, sizeof(p), "%R", lc); in sflag_print()
|
H A D | lprint.c | 170 strftime(t, sizeof(t), in lprint() 203 strftime(t, sizeof(t), in lprint() 208 strftime(t, sizeof(t), in lprint() 226 strftime(t, sizeof(t), in lprint() 232 strftime(t, sizeof(t), in lprint() 239 strftime(t, sizeof(t), in lprint()
|
/freebsd/sys/contrib/openzfs/lib/libspl/ |
H A D | timestamp.c | 60 len = strftime(dstr, sizeof (dstr), fmt, localtime_r(&t, &tm)); in print_timestamp() 84 strftime(buf, len, fmt, localtime_r(&t, &tm)); in get_timestamp() 105 strftime(buf, len, fmt, localtime_r(&t, &tm)); in format_timestamp()
|
/freebsd/lib/libc/stdtime/ |
H A D | Makefile.inc | 6 STDTIME_SRCS= strftime.c strptime.c timelocal.c 23 MAN+= ctime.3 strftime.3 strptime.3 time2posix.3 tzset.3 30 MLINKS+=strftime.3 strftime_l.3
|
H A D | Symbol.map | 11 strftime;
|
/freebsd/usr.bin/calendar/ |
H A D | locale.c | 82 strftime(buf, sizeof(buf), "%a", &tm); in setnnames() 94 strftime(buf, sizeof(buf), "%A", &tm); in setnnames() 110 strftime(buf, sizeof(buf), "%b", &tm); in setnnames() 122 strftime(buf, sizeof(buf), "%B", &tm); in setnnames()
|
/freebsd/crypto/heimdal/lib/roken/ |
H A D | strpftime-test.h | 45 #define strftime test_strftime macro 49 strftime (char *buf, size_t maxsize, const char *format,
|
H A D | strpftime-test.c | 246 len = strftime (buf, sizeof(buf), tests[i].vals[j].format, tm); in main() 272 strftime (buf, sizeof(buf), tests[i].vals[j].format, &tm2); in main()
|
/freebsd/contrib/libarchive/cpio/test/ |
H A D | test_option_t.c | 84 strftime(date2, sizeof(date2)-1, "%b %d %Y", tmptr); in DEFINE_TEST() 87 strftime(date2, sizeof(date2)-1, "%b %e %Y", tmptr); in DEFINE_TEST()
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | Chrono.cpp | 64 strftime(Buffer, sizeof(Buffer), "%Y-%m-%d %H:%M:%S", <); in format() 75 // Handle extensions first. strftime mangles unknown %x on some platforms. in format() 105 size_t Len = strftime(Buffer, sizeof(Buffer), Format.c_str(), <);
|
/freebsd/contrib/llvm-project/libcxx/include/ |
H A D | ctime | 41 size_t strftime(char* restrict s, size_t maxsize, const char* restrict format, 79 using ::strftime _LIBCPP_USING_IF_EXISTS;
|
/freebsd/usr.bin/last/ |
H A D | last.c | 253 (void) strftime(ct, sizeof(ct), "%+", tm); in wtmp() 357 (void) strftime(ct, sizeof(ct), d_first ? in printentry() 391 (void) strftime(ct, sizeof(ct), "%R", tm); in printentry() 401 (void) strftime(ct, sizeof(ct), width >= 8 ? "%T" : "%R", tm); in printentry()
|
/freebsd/contrib/tzcode/ |
H A D | Makefile | 216 # -DDEPRECATE_TWO_DIGIT_YEARS for optional runtime warnings about strftime 427 # to the end of the "CFLAGS=" line. This causes "strftime" to always return 576 TZDOBJS= zdump.o localtime.o strftime.o 577 DATEOBJS= date.o localtime.o strftime.o 578 LIBSRCS= localtime.c asctime.c difftime.c strftime.c 579 LIBOBJS= localtime.o asctime.o difftime.o strftime.o 636 private.h southamerica strftime.c theory.html \ 1361 strftime.o: private.h tzfile.h
|
H A D | LICENSE | 4 If the files date.c, newstrftime.3, and strftime.c are present, they
|
/freebsd/contrib/tzdata/ |
H A D | Makefile | 576 TZDOBJS= zdump.o localtime.o strftime.o 577 DATEOBJS= date.o localtime.o strftime.o 578 LIBSRCS= localtime.c asctime.c difftime.c strftime.c 579 LIBOBJS= localtime.o asctime.o difftime.o strftime.o 636 private.h southamerica strftime.c theory.html \ 1361 strftime.o: private.h tzfile.h
|
/freebsd/sys/contrib/openzfs/.github/codeql/custom-queries/cpp/ |
H A D | deprecatedFunctionUsage.ql | 44 result = "Use strftime(3) instead!" 46 result = "Use strftime(3) instead!"
|
/freebsd/contrib/kyua/utils/logging/ |
H A D | operations.cpp | 185 globals->first_timestamp.get().strftime(timestamp_format)); in generate_log_name() 222 now.strftime(timestamp_format) % level_to_char(message_level) % in log()
|
/freebsd/contrib/ntp/libntp/lib/isc/unix/ |
H A D | time.c | 389 flen = strftime(buf, len, "%d-%b-%Y %X", localtime(&now)); in isc_time_formattimestamp() 406 flen = strftime(buf, len, "%a, %d %b %Y %H:%M:%S GMT", gmtime(&now)); in isc_time_formathttptimestamp() 418 flen = strftime(buf, len, "%Y-%m-%dT%H:%M:%SZ", gmtime(&now)); in isc_time_formatISO8601()
|
/freebsd/tests/sys/net/routing/ |
H A D | rtsock_print.h | 270 strftime(buf, sizeof(buf), "%F %T", &tm_res); in rtsock_print_rtm() 319 strftime(buf, sizeof(buf), "%F %T", &tm_res); in rtsock_print_ifa() 356 strftime(buf, sizeof(buf), "%F %T", &tm_res); in rtsock_print_message_hd()
|
/freebsd/usr.bin/lastcomm/ |
H A D | lastcomm.c | 178 (void)strftime(buf, sizeof(buf), format, in main() 190 (void)strftime(buf, sizeof(buf), format, in main()
|
/freebsd/cddl/contrib/opensolaris/cmd/stat/common/ |
H A D | timestamp.c | 45 len = strftime(dstr, sizeof (dstr), "%+", localtime(&t)); in print_timestamp()
|
/freebsd/contrib/bmake/ |
H A D | util.c | 441 strftime(char *buf, size_t len, const char *fmt, const struct tm *tm) in strftime() function 496 s = strftime(buf, len, "%a %b %e %H:%M:%S %Y", tm); in strftime() 505 s = strftime(buf, len, "%y-%m-%d", tm); in strftime() 534 s = strftime(buf, len, "%H:%M:%S", tm); in strftime()
|
/freebsd/crypto/openssh/regress/ |
H A D | timestamp.c | 42 if (strftime(buf, sizeof buf, "%Y%m%dT%H%M%S", tm) <= 0) in main()
|