/external/python/pyasn1/pyasn1/compat/ |
D | dateandtime.py | 16 def strptime(text, dateFormat): function 17 return datetime(*(time.strptime(text, dateFormat)[0:6])) 21 def strptime(text, dateFormat): function 22 return datetime.strptime(text, dateFormat)
|
/external/autotest/client/common_lib/ |
D | time_utils.py | 45 return datetime.datetime.strptime(time_string, TIME_FMT) 47 return datetime.datetime.strptime(time_string, TIME_FMT_MICRO) 63 return time.mktime(time.strptime(date_string, TIME_FMT))
|
/external/autotest/client/cros/video/ |
D | collect_golden_images.py | 70 tmp = datetime.datetime.strptime(args.start, time_format) 91 tmp = datetime.datetime.strptime(args.stop, time_format)
|
/external/autotest/server/site_tests/platform_SuspendResumeTiming/ |
D | platform_SuspendResumeTiming.py | 54 return datetime.datetime.strptime(out_log[1:12], "%m%d/%H%M%S") 68 return datetime.datetime.strptime(out_log[1:12], "%m%d/%H%M%S")
|
/external/autotest/utils/ |
D | site_check_dut_usage.py | 159 return (datetime.datetime.strptime(start_time, _DATE_FORMAT).date(), 160 datetime.datetime.strptime(end_time, _DATE_FORMAT).date(),
|
/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/ |
D | 27-1-buildonly.c | 21 dummyvar = strptime; in dummyfcn()
|
/external/python/cpython2/Lib/test/ |
D | test_strptime.py | 381 time.strptime("Feb 29", "%b %d") 385 time.strptime("Feb 29", "%b %d"), 386 time.strptime("Mar 1", "%b %d")) 393 eq(time.strptime('12 PM', '%I %p')[3], 12) 394 eq(time.strptime('12 AM', '%I %p')[3], 0)
|
/external/scapy/scapy/layers/tls/ |
D | cert.py | 586 self.notBefore = time.strptime(notBefore, "%y%m%d%H%M%S") 596 self.notAfter = time.strptime(notAfter, "%y%m%d%H%M%S") 671 now = time.strptime(now, '%m/%d/%y') 673 now = time.strptime(now, '%b %d %H:%M:%S %Y %Z') 777 self.lastUpdate = time.strptime(lastUpdate, "%y%m%d%H%M%S") 790 self.nextUpdate = time.strptime(nextUpdate, "%y%m%d%H%M%S") 808 revocationDate = time.strptime(date, "%y%m%d%H%M%S")
|
/external/e2fsprogs/debugfs/ |
D | util.c | 247 tmp = strptime(arg, "%Y%m%d%H%M%S", &ts); in string_to_time() 249 tmp = strptime(arg, "%Y%m%d%H%M", &ts); in string_to_time() 251 tmp = strptime(arg, "%Y%m%d", &ts); in string_to_time()
|
/external/autotest/server/site_tests/firmware_EventLog/ |
D | firmware_EventLog.py | 39 timestamp = time.strptime(time_string, self._TIME_FORMAT) 55 return time.strptime(time_string, self._TIME_FORMAT)
|
/external/python/cpython3/Lib/test/ |
D | test_time.py | 265 time.strptime(strf_output, format) 272 self.assertRaises(TypeError, time.strptime, b'2009', "%Y") 273 self.assertRaises(TypeError, time.strptime, '2009', b'%Y') 278 time.strptime('', '%D') 282 time.strptime('19', '%Y %') 715 t = time.strptime("UTC", "%Z") 717 t = time.strptime("+0500", "%z")
|
D | test_strptime.py | 462 time.strptime("Feb 29", "%b %d") 466 time.strptime("Feb 29", "%b %d"), 467 time.strptime("Mar 1", "%b %d")) 474 eq(time.strptime('12 PM', '%I %p')[3], 12) 475 eq(time.strptime('12 AM', '%I %p')[3], 0)
|
/external/fonttools/Lib/fontTools/misc/ |
D | timeTools.py | 48 return calendar.timegm(time.strptime(value)) - epoch_diff
|
/external/python/cpython3/Doc/library/ |
D | datetime.rst | 728 :ref:`strftime-strptime-behavior`. 737 :ref:`strftime-strptime-behavior`. 1029 .. classmethod:: datetime.strptime(date_string, format) 1036 datetime(*(time.strptime(date_string, format)[0:6])) 1039 can't be parsed by :func:`time.strptime` or if it returns a value which isn't a 1041 :ref:`strftime-strptime-behavior`. 1503 :ref:`strftime-strptime-behavior`. 1512 :ref:`strftime-strptime-behavior`. 1535 >>> # Using datetime.strptime() 1536 >>> dt = datetime.strptime("21/11/06 16:30", "%d/%m/%y %H:%M") [all …]
|
D | time.rst | 47 * Function :func:`strptime` can parse 2-digit years when given ``%y`` format 81 :func:`strptime`, and accepted by :func:`asctime`, :func:`mktime` and 83 :func:`gmtime`, :func:`localtime`, and :func:`strptime` also offer attribute 449 When used with the :func:`strptime` function, the ``%p`` directive only affects 458 When used with the :func:`strptime` function, ``%U`` and ``%W`` are only used in 482 .. function:: strptime(string[, format]) 499 >>> time.strptime("30 Nov 00", "%d %b %y") # doctest: +NORMALIZE_WHITESPACE 510 directives than those listed. But ``strptime()`` is independent of any platform 518 :func:`localtime`, and :func:`strptime`. It is an object with a :term:`named 866 of many format specifiers in :func:`strftime` and :func:`strptime`.
|
/external/autotest/server/cros/dynamic_suite/ |
D | job_status.py | 281 datetime.datetime.strptime( 288 datetime.datetime.strptime(
|
/external/autotest/contrib/ |
D | log_distiller.py | 46 log_time = datetime.datetime.strptime(time_str, time_format) 47 now = datetime.datetime.strptime(time.strftime(time_format), time_format)
|
/external/python/cpython2/Doc/library/ |
D | time.rst | 80 :func:`strptime`, and accepted by :func:`asctime`, :func:`mktime` and 82 values of :func:`gmtime`, :func:`localtime`, and :func:`strptime` also offer 336 When used with the :func:`strptime` function, the ``%p`` directive only affects 344 When used with the :func:`strptime` function, ``%U`` and ``%W`` are only used in 365 .. function:: strptime(string[, format]) 380 >>> time.strptime("30 Nov 00", "%d %b %y") # doctest: +NORMALIZE_WHITESPACE 391 directives than those listed. But ``strptime()`` is independent of any platform 399 :func:`localtime`, and :func:`strptime`. It is an object with a :term:`named 562 of many format specifiers in :func:`strftime` and :func:`strptime`.
|
D | datetime.rst | 557 :ref:`strftime-strptime-behavior`. 564 See section :ref:`strftime-strptime-behavior`. 729 .. classmethod:: datetime.strptime(date_string, format) 732 *format*. This is equivalent to ``datetime(*(time.strptime(date_string, 734 can't be parsed by :func:`time.strptime` or if it returns a value which isn't a 736 :ref:`strftime-strptime-behavior`. 1057 :ref:`strftime-strptime-behavior`. 1064 See section :ref:`strftime-strptime-behavior`. 1082 >>> # Using datetime.strptime() 1083 >>> dt = datetime.strptime("21/11/06 16:30", "%d/%m/%y %H:%M") [all …]
|
/external/chromium-trace/catapult/common/lab/ |
D | commits.py | 68 commit_time = datetime.datetime.strptime(
|
/external/perfetto/infra/ci/ |
D | common_utils.py | 99 return datetime.strptime(time_str, r'%Y-%m-%dT%H:%M:%SZ')
|
/external/toybox/toys/posix/ |
D | sort.c | 203 xx = strptime(x,"%b",&thyme); in compare_values() 205 yy = strptime(y,"%b",&thyme); in compare_values()
|
D | date.c | 132 char *s = strptime(TT.d, TT.D+(*TT.D=='+'), &tm); in date_main()
|
/external/fmtlib/test/ |
D | scan-test.cc | 84 auto result = strptime(ctx.begin(), format.c_str(), &t); in scan()
|
/external/python/apitools/apitools/base/protorpclite/ |
D | util.py | 267 decoded_datetime = datetime.datetime.strptime(time_string, format_string)
|