Home
last modified time | relevance | path

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

12345678910>>...22

/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.py43 time.strftime(format, tt)
52 time.strftime('%f')
112 self._bounds_checking(lambda tup: time.strftime('', tup))
119 self.assertRaises(ValueError, time.strftime, '',
122 self.assertRaises(ValueError, time.strftime, '',
124 self.assertRaises(ValueError, time.strftime, '',
127 self.assertRaises(ValueError, time.strftime, '',
129 self.assertRaises(ValueError, time.strftime, '',
132 self.assertRaises(ValueError, time.strftime, '',
134 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/python/cpython3/Lib/test/
Dtest_strptime.py39 strftime_output = time.strftime(directive, self.time_tuple).lower()
65 strftime_output = time.strftime("%p", self.time_tuple).lower()
75 timezone = time.strftime("%Z", self.time_tuple).lower()
90 strftime_output = time.strftime("%c", magic_date)
91 self.assertEqual(time.strftime(self.LT_ins.LC_date_time, magic_date),
93 strftime_output = time.strftime("%x", magic_date)
94 self.assertEqual(time.strftime(self.LT_ins.LC_date, magic_date),
96 strftime_output = time.strftime("%X", magic_date)
97 self.assertEqual(time.strftime(self.LT_ins.LC_time, magic_date),
161 found = compiled.match(time.strftime("%" + directive))
[all …]
Dtest_strftime.py119 result = time.strftime(e[0], now)
161 result = time.strftime(e[0], now)
193 time.strftime("%y", t)
195 self.assertEqual(time.strftime("%y", t), "99")
199 time.strftime("%y", (1900, 1, 1, 0, 0, 0, 0, 0, 0)), "00")
203 time.strftime("%y", (2013, 1, 1, 0, 0, 0, 0, 0, 0)), "13")
/external/python/asn1crypto/tests/
Dtest_util.py132 self.assertEqual('0000-01-01', util.extended_date(0, 1, 1).strftime('%Y-%m-%d'))
133 … self.assertEqual('Sat Saturday Jan January', util.extended_date(0, 1, 1).strftime('%a %A %b %B'))
134 …self.assertEqual('Tue Tuesday Feb February 29', util.extended_date(0, 2, 29).strftime('%a %A %b %B…
136 self.assertEqual('01/01/00 00:00:00', util.extended_date(0, 1, 1).strftime('%c'))
138 self.assertEqual('Sat Jan 1 00:00:00 0000', util.extended_date(0, 1, 1).strftime('%c'))
139 self.assertEqual('01/01/00', util.extended_date(0, 1, 1).strftime('%x'))
177 …self.assertEqual('0000-01-01 00:00:00', util.extended_datetime(0, 1, 1).strftime('%Y-%m-%d %H:%M:%…
178 …self.assertEqual('Sat Saturday Jan January', util.extended_datetime(0, 1, 1).strftime('%a %A %b %B…
179 …self.assertEqual('Tue Tuesday Feb February 29', util.extended_datetime(0, 2, 29).strftime('%a %A %…
181 self.assertEqual('01/01/00 00:00:00', util.extended_datetime(0, 1, 1).strftime('%c'))
[all …]
/external/bcc/tools/
Dtcplife.py31 from time import strftime
446 print("%s," % strftime("%H:%M:%S"), end="")
448 print("%-8s " % strftime("%H:%M:%S"), end="")
468 print("%s," % strftime("%H:%M:%S"), end="")
470 print("%-8s " % strftime("%H:%M:%S"), end="")
Dpidpersec.py18 from time import sleep, strftime
53 print("%s: PIDs/sec: %d" % (strftime("%H:%M:%S"),
Dtcpstates.py24 from time import strftime, time
319 print("%s," % strftime("%H:%M:%S"), end="")
321 print("%-8s " % strftime("%H:%M:%S"), end="")
344 print("%s," % strftime("%H:%M:%S"), end="")
346 print("%-8s " % strftime("%H:%M:%S"), end="")
Dbashreadline.py16 from time import strftime
59 print("%-9s %-6d %s" % (strftime("%H:%M:%S"), event.pid,
Dmdflush.py16 from time import strftime
74 print("%-8s %-6d %-16s %s" % (strftime("%H:%M:%S"), event.pid,
Dtcpdrop.py23 from time import strftime
185 strftime("%H:%M:%S"), event.pid, event.ip,
197 strftime("%H:%M:%S"), event.pid, event.ip,
/external/python/asn1crypto/asn1crypto/
Dutil.py367 def strftime(self, format): member in extended_date
381 y2k = self._y2k.strftime(format)
382 y4k = self._y2k.replace(year=4000).strftime(format)
394 return self.strftime('0000-%m-%d')
429 return self.strftime('%Y-%m-%d')
633 def strftime(self, format): member in extended_datetime
646 y2k = self._y2k.strftime(format)
647 y4k = self._y2k.replace(year=4000).strftime(format)
/external/libcxx/utils/google-benchmark/src/
Dtimers.cc193 std::strftime(storage, sizeof(storage), "%x %X", ::localtime(&now)); in DateTimeString()
197 written = std::strftime(storage, sizeof(storage), "%F %T", &timeinfo); in DateTimeString()
201 written = std::strftime(storage, sizeof(storage), "%x %X", ::gmtime(&now)); in DateTimeString()
205 written = std::strftime(storage, sizeof(storage), "%F %T", &timeinfo); in DateTimeString()
/external/llvm-project/libcxx/utils/google-benchmark/src/
Dtimers.cc193 std::strftime(storage, sizeof(storage), "%x %X", ::localtime(&now)); in DateTimeString()
197 written = std::strftime(storage, sizeof(storage), "%F %T", &timeinfo); in DateTimeString()
201 written = std::strftime(storage, sizeof(storage), "%x %X", ::gmtime(&now)); in DateTimeString()
205 written = std::strftime(storage, sizeof(storage), "%F %T", &timeinfo); in DateTimeString()
/external/llvm-project/llvm/utils/benchmark/src/
Dtimers.cc193 std::strftime(storage, sizeof(storage), "%x %X", ::localtime(&now)); in DateTimeString()
197 written = std::strftime(storage, sizeof(storage), "%F %T", &timeinfo); in DateTimeString()
201 written = std::strftime(storage, sizeof(storage), "%x %X", ::gmtime(&now)); in DateTimeString()
205 written = std::strftime(storage, sizeof(storage), "%F %T", &timeinfo); in DateTimeString()
/external/bcc/tools/old/
Dbashreadline.py15 from time import strftime
43 print("%-9s %-6d %s" % (strftime("%H:%M:%S"), pid, msg))
Dgethostlatency.py19 from time import strftime
76 print("%-9s %-6d %-12.12s %6.2f %s" % (strftime("%H:%M:%S"), pid, task,
Doomkill.py18 from time import strftime
70 ", %d pages, loadavg: %s") % (strftime("%H:%M:%S"), event.fpid,
/external/curl/docs/libcurl/
Dmksymbolsmanpage.pl27 my $date = strftime "%b %e, %Y", localtime;
28 my $year = strftime "%Y", localtime;
/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/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()

12345678910>>...22