Home
last modified time | relevance | path

Searched refs:timestr (Results 1 – 14 of 14) sorted by relevance

/external/python/dateutil/dateutil/parser/
Disoparser.py166 def parse_isotime(self, timestr): argument
176 components = self._parse_isotime(timestr)
330 def _parse_isotime(self, timestr): argument
331 len_str = len(timestr)
336 if len(timestr) < 2:
339 has_sep = len_str >= 3 and timestr[2:3] == self._TIME_SEP
344 if timestr[pos:pos + 1] in b'-+Zz':
346 components[-1] = self._parse_tzstr(timestr[pos:])
352 components[comp] = int(timestr[pos:pos + 2])
355 timestr[pos:pos + 1] == self._TIME_SEP):
[all …]
D_parser.py578 def parse(self, timestr, default=None, argument
646 res, skipped_tokens = self._parse(timestr, **kwargs)
649 raise ValueError("Unknown string format:", timestr)
652 raise ValueError("String does not contain a date:", timestr)
669 def _parse(self, timestr, dayfirst=None, yearfirst=None, fuzzy=False, argument
722 l = _timelex.split(timestr) # Splits the timestr into tokens
833 raise ValueError(timestr)
852 raise ValueError(timestr)
1260 def parse(timestr, parserinfo=None, **kwargs): argument
1356 return parser(parserinfo).parse(timestr, **kwargs)
[all …]
/external/curl/lib/
Dgetinfo.c180 char *timestr = getenv("CURL_TIME"); in getinfo_long() local
181 if(timestr) { in getinfo_long()
182 unsigned long val = strtol(timestr, NULL, 10); in getinfo_long()
192 timestr = getenv("CURL_DEBUG_SIZE"); in getinfo_long()
193 if(timestr) { in getinfo_long()
194 unsigned long val = strtol(timestr, NULL, 10); in getinfo_long()
326 char *timestr = getenv("CURL_TIME"); in getinfo_offt() local
327 if(timestr) { in getinfo_offt()
328 unsigned long val = strtol(timestr, NULL, 10); in getinfo_offt()
405 char *timestr = getenv("CURL_TIME"); in getinfo_double() local
[all …]
Daltsvc.c423 char *timestr = getenv("CURL_TIME"); in debugtime() local
425 if(timestr) { in debugtime()
426 unsigned long val = strtol(timestr, NULL, 10); in debugtime()
/external/rust/crates/chrono/src/offset/
Dlocal.rs214 let timestr = dt.time().to_string(); in test_leap_second() localVariable
217 assert!(timestr == "01:02:60" || timestr == "01:03:00", "unexpected timestr {:?}", timestr); in test_leap_second()
220 let timestr = dt.time().to_string(); in test_leap_second() localVariable
222 timestr == "01:02:03.234" || timestr == "01:02:04.234", in test_leap_second()
224 timestr in test_leap_second()
/external/curl/tests/libtest/
Dtesttrace.c94 char *timestr; in libtest_debug_cb() local
100 timestr = &timebuf[0]; in libtest_debug_cb()
117 fprintf(stderr, "%s== Info: %s", timestr, (char *)data); in libtest_debug_cb()
/external/markdown/MarkdownTest/
DMarkdownTest.pl92 print "Benchmark: ", timestr($time_diff), "\n";
/external/mesa3d/src/freedreno/rnn/
Dheadergen2.c347 char timestr[64]; in print_file_info_() local
348 strftime(timestr, sizeof(timestr), "%Y-%m-%d %H:%M:%S", tm); in print_file_info_()
349 fprintf(dst, "(%7Lu bytes, from %s)\n", (unsigned long long)sb->st_size, timestr); in print_file_info_()
/external/google-breakpad/src/tools/mac/crash_report/
Dcrash_report.mm256 char timestr[20];
257 strftime(timestr, 20, "%Y-%m-%d %H:%M:%S", &timestruct);
258 printf("Date: %s GMT\n", timestr);
/external/python/cpython3/Lib/
Ddatetime.py327 timestr = tstr[:tz_pos-1] if tz_pos > 0 else tstr
329 time_comps = _parse_hh_mm_ss_ff(timestr)
/external/icu/icu4c/source/i18n/
Dvtzone.cpp2293 UnicodeString timestr; in writeZonePropsByTime() local
2294 writer.write(getDateTimeString(time + fromOffset, timestr)); in writeZonePropsByTime()
/external/google-breakpad/src/processor/
Dminidump.cc381 char timestr[20]; in TimeTToUTCString() local
382 size_t rv = strftime(timestr, 20, "%Y-%m-%d %H:%M:%S", &timestruct); in TimeTToUTCString()
387 return string(timestr); in TimeTToUTCString()
/external/python/cpython2/Lib/test/
Dtest_datetime.py2871 timestr = '04:05:59' + (us and '.987001' or '')
2873 tailstr = timestr + ofsstr
/external/python/cpython3/Lib/test/
Ddatetimetester.py4522 timestr = '04:05:59' + (us and '.987001' or '')
4524 tailstr = timestr + ofsstr