Home
last modified time | relevance | path

Searched refs:strftime (Results 1 – 25 of 208) sorted by relevance

123456789

/freebsd-13.1/contrib/kyua/utils/
H A Ddatetime_test.cpp273 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()
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()
325 ATF_REQUIRE(now.strftime("%Z") == "GMT" || now.strftime("%Z") == "UTC"); in ATF_TEST_CASE_BODY()
344 ATF_REQUIRE_EQ("2010-12-10", ts1.strftime("%Y-%m-%d")); in ATF_TEST_CASE_BODY()
[all …]
H A Ddatetime.cpp384 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-13.1/lib/libc/stdtime/
H A DMakefile.inc6 SRCS+= asctime.c difftime.c localtime.c strftime.c strptime.c timelocal.c \
15 MAN+= ctime.3 strftime.3 strptime.3 time2posix.3
22 MLINKS+=strftime.3 strftime_l.3
H A DSymbol.map15 strftime;
/freebsd-13.1/usr.bin/finger/
H A Dsprint.c133 (void)strftime(p, sizeof(p), "%a", lc); in sflag_print()
135 (void)strftime(p, sizeof(p), in sflag_print()
140 (void)strftime(p, sizeof(p), "%Y", lc); in sflag_print()
142 (void)strftime(p, sizeof(p), "%R", lc); in sflag_print()
H A Dlprint.c179 strftime(t, sizeof(t), in lprint()
212 strftime(t, sizeof(t), in lprint()
217 strftime(t, sizeof(t), in lprint()
235 strftime(t, sizeof(t), in lprint()
241 strftime(t, sizeof(t), in lprint()
248 strftime(t, sizeof(t), in lprint()
/freebsd-13.1/usr.bin/calendar/
H A Dlocale.c84 strftime(buf, sizeof(buf), "%a", &tm); in setnnames()
96 strftime(buf, sizeof(buf), "%A", &tm); in setnnames()
112 strftime(buf, sizeof(buf), "%b", &tm); in setnnames()
124 strftime(buf, sizeof(buf), "%B", &tm); in setnnames()
/freebsd-13.1/crypto/heimdal/lib/roken/
H A Dstrpftime-test.h45 #define strftime test_strftime macro
49 strftime (char *buf, size_t maxsize, const char *format,
H A Dstrpftime-test.c246 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-13.1/contrib/googletest/googletest/scripts/
H A Dgen_gtest_pred_impl.py74 'today' : time.strftime('%m/%d/%Y'),
75 'year' : time.strftime('%Y'),
330 'today' : time.strftime('%m/%d/%Y'),
331 'year' : time.strftime('%Y'),
/freebsd-13.1/contrib/libarchive/cpio/test/
H A Dtest_option_t.c91 strftime(date2, sizeof(date2)-1, "%b %d %Y", localtime(&mtime)); in DEFINE_TEST()
94 strftime(date2, sizeof(date2)-1, "%b %e %Y", localtime(&mtime)); in DEFINE_TEST()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Support/
H A DChrono.cpp46 strftime(Buffer, sizeof(Buffer), "%Y-%m-%d %H:%M:%S", &LT); in operator <<()
89 size_t Len = strftime(Buffer, sizeof(Buffer), Format.c_str(), &LT); in format()
/freebsd-13.1/bin/date/
H A Ddate.c214 (void)strftime(buf, sizeof(buf), format, lt); in main()
237 (void)strftime(buf, sizeof(buf), fmtbuf, lt); in printisodate()
240 (void)strftime(tzbuf, sizeof(tzbuf), "%z", lt); in printisodate()
/freebsd-13.1/usr.bin/last/
H A Dlast.c294 (void) strftime(ct, sizeof(ct), "%+", tm); in wtmp()
392 (void) strftime(ct, sizeof(ct), d_first ? in printentry()
426 (void) strftime(ct, sizeof(ct), "%R", tm); in printentry()
436 (void) strftime(ct, sizeof(ct), width >= 8 ? "%T" : "%R", tm); in printentry()
/freebsd-13.1/contrib/kyua/utils/logging/
H A Doperations.cpp185 globals->first_timestamp.get().strftime(timestamp_format)); in generate_log_name()
222 now.strftime(timestamp_format) % level_to_char(message_level) % in log()
/freebsd-13.1/tests/sys/net/routing/
H A Drtsock_print.h272 strftime(buf, sizeof(buf), "%F %T", &tm_res); in rtsock_print_rtm()
321 strftime(buf, sizeof(buf), "%F %T", &tm_res); in rtsock_print_ifa()
358 strftime(buf, sizeof(buf), "%F %T", &tm_res); in rtsock_print_message_hd()
/freebsd-13.1/contrib/ntp/lib/isc/unix/
H A Dtime.c389 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-13.1/contrib/llvm-project/libcxx/include/
H A Dctime41 size_t strftime(char* restrict s, size_t maxsize, const char* restrict format,
88 using ::strftime _LIBCPP_USING_IF_EXISTS;
/freebsd-13.1/usr.bin/lastcomm/
H A Dlastcomm.c192 (void)strftime(buf, sizeof(buf), format, in main()
204 (void)strftime(buf, sizeof(buf), format, in main()
/freebsd-13.1/cddl/contrib/opensolaris/cmd/stat/common/
H A Dtimestamp.c45 len = strftime(dstr, sizeof (dstr), "%+", localtime(&t)); in print_timestamp()
/freebsd-13.1/sys/contrib/openzfs/lib/libspl/
H A Dtimestamp.c59 len = strftime(dstr, sizeof (dstr), fmt, localtime(&t)); in print_timestamp()
/freebsd-13.1/contrib/tzdata/
H A DLICENSE4 If the files date.c, newstrftime.3, and strftime.c are present, they
/freebsd-13.1/usr.sbin/mfiutil/
H A DMakefile9 CFLAGS.gcc+= -fno-builtin-strftime
/freebsd-13.1/contrib/libcbor/misc/
H A Dupdate_version.py5 release_date = date.today().strftime('%Y-%m-%d')
/freebsd-13.1/bin/pax/
H A Dgen_subs.c112 if (strftime(f_date,DATELEN,timefrmt,localtime(&(sbp->st_mtime))) == 0) in ls_list()
174 if (strftime(f_date, DATELEN, timefrmt, in ls_tty()

123456789