Home
last modified time | relevance | path

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

12345678910>>...12

/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/strftime/
D1-1.c30 strftime(text, sizeof(text), nl_langinfo(D_T_FMT), local_t); in main()
35 result = strftime(text, sizeof(text), "%a", local_t); in main()
44 result = strftime(text, sizeof(text), "%A", local_t); in main()
53 result = strftime(text, sizeof(text), "%b", local_t); in main()
62 result = strftime(text, sizeof(text), "%B", local_t); in main()
82 result = strftime(text, sizeof(text), "%C", local_t); in main()
91 result = strftime(text, sizeof(text), "%d", local_t); in main()
112 result = strftime(text, sizeof(text), "%e", local_t); in main()
121 result = strftime(text, sizeof(text), "%F", local_t); in main()
130 result = strftime(text, sizeof(text), "%H", local_t); in main()
[all …]
D2-1.c31 strftime(text, sizeof(text), nl_langinfo(D_T_FMT), local_t); in main()
47 result = strftime(text, sizeof(text), "%EC", local_t); in main()
67 result = strftime(text, sizeof(text), "%EX", local_t); in main()
87 result = strftime(text, sizeof(text), "%EY", local_t); in main()
96 result = strftime(text, sizeof(text), "%Od", local_t); in main()
105 result = strftime(text, sizeof(text), "%Oe", local_t); in main()
114 result = strftime(text, sizeof(text), "%OH", local_t); in main()
123 result = strftime(text, sizeof(text), "%OI", local_t); in main()
132 result = strftime(text, sizeof(text), "%Om", local_t); in main()
141 result = strftime(text, sizeof(text), "%OM", local_t); in main()
[all …]
Dcoverage.txt5 conformance/interfaces/strftime/1-1: build: FAILED: Compiler output:
7 conformance/interfaces/strftime/1-1.c: In function `main':
8 conformance/interfaces/strftime/1-1.c:67: warning: `%c' yields only last 2 digits of year in some l…
9 conformance/interfaces/strftime/1-1.c:95: warning: `%D' yields only last 2 digits of year
10 conformance/interfaces/strftime/1-1.c:132: warning: `%g' yields only last 2 digits of year
11 conformance/interfaces/strftime/1-1.c:312: warning: `%x' yields only last 2 digits of year in some …
12 conformance/interfaces/strftime/1-1.c:330: warning: `%y' yields only last 2 digits of year
/external/python/cpython2/Lib/test/
Dtest_time.py37 time.strftime(format, tt)
46 time.strftime('%f')
53 self.assertRaises(ValueError, time.strftime, '',
56 self.assertRaises(ValueError, time.strftime, '',
58 self.assertRaises(ValueError, time.strftime, '',
61 self.assertRaises(ValueError, time.strftime, '',
63 self.assertRaises(ValueError, time.strftime, '',
66 self.assertRaises(ValueError, time.strftime, '',
68 self.assertRaises(ValueError, time.strftime, '',
71 self.assertRaises(ValueError, time.strftime, '',
[all …]
Dtest_strptime.py38 strftime_output = time.strftime(directive, self.time_tuple).lower()
64 strftime_output = time.strftime("%p", self.time_tuple).lower()
74 timezone = time.strftime("%Z", self.time_tuple).lower()
89 strftime_output = time.strftime("%c", magic_date)
90 self.assertEqual(time.strftime(self.LT_ins.LC_date_time, magic_date),
92 strftime_output = time.strftime("%x", magic_date)
93 self.assertEqual(time.strftime(self.LT_ins.LC_date, magic_date),
95 strftime_output = time.strftime("%X", magic_date)
96 self.assertEqual(time.strftime(self.LT_ins.LC_time, magic_date),
159 found = compiled.match(time.strftime("%" + directive))
[all …]
/external/ltp/tools/pounder21/src/time_tests/
Ddrift-test.py64 datestr = time.strftime("%d %b %Y %H:%M:%S", start_time)
76 datestr = time.strftime("%d %b %Y %H:%M:%S", now_time)
84 print time.strftime("%d %b %H:%M:%S",now_time),
/external/libcxx/utils/google-benchmark/src/
Dtimers.cc169 std::strftime(storage, sizeof(storage), "%x %X", ::localtime(&now)); in DateTimeString()
174 written = std::strftime(storage, sizeof(storage), "%F %T", &timeinfo); in DateTimeString()
178 written = std::strftime(storage, sizeof(storage), "%x %X", ::gmtime(&now)); in DateTimeString()
183 written = std::strftime(storage, sizeof(storage), "%F %T", &timeinfo); in DateTimeString()
/external/google-benchmark/src/
Dtimers.cc182 std::strftime(storage, sizeof(storage), "%x %X", ::localtime(&now)); in DateTimeString()
187 written = std::strftime(storage, sizeof(storage), "%F %T", &timeinfo); in DateTimeString()
191 written = std::strftime(storage, sizeof(storage), "%x %X", ::gmtime(&now)); in DateTimeString()
196 written = std::strftime(storage, sizeof(storage), "%F %T", &timeinfo); in DateTimeString()
/external/curl/docs/libcurl/
Dmksymbolsmanpage.pl27 my $date = strftime "%b %e, %Y", localtime;
28 my $year = strftime "%Y", localtime;
/external/strace/tests/
Dprint_time.c45 if (!p || !strftime(buf, sizeof(buf), "%FT%T", p)) in print_time_t_ex()
56 if (strftime(buf, sizeof(buf), "%z", p)) in print_time_t_ex()
/external/strace/tests-m32/
Dprint_time.c45 if (!p || !strftime(buf, sizeof(buf), "%FT%T", p)) in print_time_t_ex()
56 if (strftime(buf, sizeof(buf), "%z", p)) in print_time_t_ex()
/external/strace/tests-mx32/
Dprint_time.c45 if (!p || !strftime(buf, sizeof(buf), "%FT%T", p)) in print_time_t_ex()
56 if (strftime(buf, sizeof(buf), "%z", p)) in print_time_t_ex()
/external/clang/utils/CIndex/
Dcompletion_logger_server.py4 from time import strftime
33 f.write("\"time\": \"{0}\"".format(datetime.datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S')))
/external/v8/testing/gtest/scripts/
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'),
/external/protobuf/gtest/scripts/
Dgen_gtest_pred_impl.py74 'today' : time.strftime('%m/%d/%Y'),
75 'year' : time.strftime('%Y'),
332 'today' : time.strftime('%m/%d/%Y'),
333 'year' : time.strftime('%Y'),
/external/googletest/googletest/scripts/
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'),
/external/google-breakpad/src/testing/gtest/scripts/
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'),
/external/vulkan-validation-layers/tests/gtest-1.7.0/scripts/
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'),
/external/python/cpython2/Lib/
D_strptime.py114 am_pm.append(time.strftime("%p", time_tuple).lower())
127 date_time[0] = time.strftime("%c", time_tuple).lower()
128 date_time[1] = time.strftime("%x", time_tuple).lower()
129 date_time[2] = time.strftime("%X", time_tuple).lower()
153 if '00' in time.strftime(directive, time_tuple):
/external/libcxx/include/
Dctime40 size_t strftime(char* restrict s, size_t maxsize, const char* restrict format,
70 using ::strftime;
/external/toolchain-utils/deprecated/
Dsheriff_rotation.py46 return (week_begin.strftime(strftime_format),
47 week_end.strftime(strftime_format))
/external/clang/test/Sema/
Dattr-format.c15 void y(char *str) __attribute__((format(strftime, 1,0))); // no-error
16 void z(char *str, int c, ...) __attribute__((format(strftime, 1,2))); // expected-error {{strftime …
/external/linux-kselftest/tools/testing/selftests/timers/
Dthreadtest.c175 strftime(buf, 255, "%a, %d %b %Y %T %z", localtime(&start)); in main()
187 strftime(buf, 255, "%a, %d %b %Y %T %z", localtime(&now)); in main()
/external/python/cpython2/Doc/library/
Dtime.rst81 :func:`strftime`, may be considered as a sequence of 9 integers. The return
232 .. function:: strftime(format[, t])
238 raised if any field in *t* is outside of the allowed range. :func:`strftime`
240 by doing ``strftime(<myformat>).decode(locale.getlocale()[1])``.
254 by the indicated characters in the :func:`strftime` result:
350 >>> from time import gmtime, strftime
351 >>> strftime("%a, %d %b %Y %H:%M:%S +0000", gmtime())
356 of format codes supported on your platform, consult the :manpage:`strftime(3)`
371 :func:`strftime`; it defaults to ``"%a %b %d %H:%M:%S %Y"`` which matches the
390 ``strftime()`` is implemented per platform it can sometimes offer more
[all …]
/external/libvncserver/utils/
Dgit2cl.pl340 print (strftime "%Y-%m-%d $author\n\n", @date);
369 print (strftime "%Y-%m-%d $author\n\n", @date);

12345678910>>...12