Searched refs:strftime (Results 1 - 25 of 162) sorted by relevance

1234567

/freebsd-13-stable/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);
248 printf ("length of strftime(\"%s\") = %lu (\"%s\")\n",
255 printf ("result of strftime(\"%s\") = \"%s\" != \"%s\"\n",
272 strftime (buf, sizeof(buf), tests[i].vals[j].format, &tm2);
/freebsd-13-stable/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
/freebsd-13-stable/cddl/contrib/opensolaris/cmd/stat/common/
H A Dtimestamp.c45 len = strftime(dstr, sizeof (dstr), "%+", localtime(&t));
/freebsd-13-stable/sys/contrib/openzfs/lib/libspl/
H A Dtimestamp.c59 len = strftime(dstr, sizeof (dstr), fmt, localtime(&t));
/freebsd-13-stable/usr.sbin/mfiutil/
H A DMakefile9 CFLAGS.gcc+= -fno-builtin-strftime
/freebsd-13-stable/contrib/libarchive/cpio/test/
H A Dtest_option_t.c91 strftime(date2, sizeof(date2)-1, "%b %d %Y", localtime(&mtime));
94 strftime(date2, sizeof(date2)-1, "%b %e %Y", localtime(&mtime));
/freebsd-13-stable/contrib/openbsm/bsm/
H A Dauditd_lib.h48 !strftime((b), (l), "%Y%m%d%H%M%S", gmtime(&(t)) ) ) ? -1 : 0
/freebsd-13-stable/usr.bin/calendar/
H A Dlocale.c84 strftime(buf, sizeof(buf), "%a", &tm);
96 strftime(buf, sizeof(buf), "%A", &tm);
112 strftime(buf, sizeof(buf), "%b", &tm);
124 strftime(buf, sizeof(buf), "%B", &tm);
H A Dday.c68 strftime(dayname, sizeof(dayname) - 1, "%A, %d %B %Y", tp1);
/freebsd-13-stable/usr.bin/finger/
H A Dsprint.c133 (void)strftime(p, sizeof(p), "%a", lc);
135 (void)strftime(p, sizeof(p),
140 (void)strftime(p, sizeof(p), "%Y", lc);
142 (void)strftime(p, sizeof(p), "%R", lc);
H A Dlprint.c179 strftime(t, sizeof(t),
212 strftime(t, sizeof(t),
217 strftime(t, sizeof(t),
235 strftime(t, sizeof(t),
241 strftime(t, sizeof(t),
248 strftime(t, sizeof(t),
/freebsd-13-stable/contrib/kyua/utils/
H A Ddatetime_test.cpp273 ATF_REQUIRE_EQ("2011", ts1.strftime("%Y"));
274 ATF_REQUIRE_EQ("2011", ts2.strftime("%Y"));
275 ATF_REQUIRE_EQ("2012", ts3.strftime("%Y"));
277 ATF_REQUIRE_EQ("2011", ts1.strftime("%Y"));
286 ATF_REQUIRE_EQ("2012-02-09 23:15:51", ts.strftime("%Y-%m-%d %H:%M:%S"));
297 datetime::timestamp::now().strftime("%Y-%m-%d %H:%M:%S"));
302 datetime::timestamp::now().strftime("%Y-%m-%d %H:%M:%S"));
304 datetime::timestamp::now().strftime("%Y-%m-%d %H:%M:%S"));
322 ATF_REQUIRE(::strftime(buf, sizeof(buf), "%Y-%m-%d", &data) != 0);
323 ATF_REQUIRE_EQ(buf, now.strftime("
[all...]
H A Ddatetime.hpp109 std::string strftime(const std::string&) const;
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Support/
H A DChrono.cpp46 strftime(Buffer, sizeof(Buffer), "%Y-%m-%d %H:%M:%S", &LT);
59 // Handle extensions first. strftime mangles unknown %x on some platforms.
89 size_t Len = strftime(Buffer, sizeof(Buffer), Format.c_str(), &LT);
/freebsd-13-stable/contrib/tzcode/stdtime/
H A Dasctime.c7 ** Avoid the temptation to punt entirely to strftime;
8 ** the output of strftime is supposed to be locale specific
41 ** we call a strftime variant that produces fewer characters for some years.
109 ** Use strftime's %Y to generate the year, to avoid overflow problems
111 ** Assume that strftime is unaffected by other out-of-range members
114 (void) strftime(year, sizeof year, "%Y", timeptr);
/freebsd-13-stable/contrib/libxo/tests/gettext/
H A Dgt_01.c97 strftime(date, sizeof(date), "%+", &tm);
/freebsd-13-stable/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-stable/contrib/opie/libopie/
H A Dwriterec.c51 if (strftime(buf2, sizeof(buf2), " %b %d,%Y %T", localtime(&now)) < 1)
/freebsd-13-stable/crypto/heimdal/lib/krb5/
H A Dtime.c118 strftime(s, len, include_time ? context->time_fmt : context->date_fmt, tm) == 0)
/freebsd-13-stable/usr.sbin/pw/
H A Dpw_log.c108 strftime(nfmt, sizeof nfmt, "%Y-%m-%d %T ", t);
/freebsd-13-stable/contrib/kyua/utils/logging/
H A Doperations.cpp89 /// Constant string to strftime to format timestamps.
185 globals->first_timestamp.get().strftime(timestamp_format));
222 now.strftime(timestamp_format) % level_to_char(message_level) %
/freebsd-13-stable/usr.bin/lastcomm/
H A Dlastcomm.c192 (void)strftime(buf, sizeof(buf), format,
204 (void)strftime(buf, sizeof(buf), format,
/freebsd-13-stable/usr.bin/find/
H A Dls.c106 strftime(longstring, sizeof(longstring), format, localtime(&ftime));
/freebsd-13-stable/bin/date/
H A Ddate.c214 (void)strftime(buf, sizeof(buf), format, lt);
237 (void)strftime(buf, sizeof(buf), fmtbuf, lt);
240 (void)strftime(tzbuf, sizeof(tzbuf), "%z", lt);

Completed in 460 milliseconds

1234567