Home
last modified time | relevance | path

Searched refs:strptime (Results 1 – 25 of 113) sorted by relevance

12345

/external/python/pyasn1/pyasn1/compat/
Ddateandtime.py16 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/
Dtime_utils.py45 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/
Dcollect_golden_images.py70 tmp = datetime.datetime.strptime(args.start, time_format)
91 tmp = datetime.datetime.strptime(args.stop, time_format)
/external/autotest/server/site_tests/platform_SuspendResumeTiming/
Dplatform_SuspendResumeTiming.py54 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/
Dsite_check_dut_usage.py159 return (datetime.datetime.strptime(start_time, _DATE_FORMAT).date(),
160 datetime.datetime.strptime(end_time, _DATE_FORMAT).date(),
/external/python/cpython2/Lib/test/
Dtest_strptime.py381 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/
Dcert.py586 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/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/
D27-1-buildonly.c21 dummyvar = strptime; in dummyfcn()
/external/e2fsprogs/debugfs/
Dutil.c247 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/
Dfirmware_EventLog.py39 timestamp = time.strptime(time_string, self._TIME_FORMAT)
55 return time.strptime(time_string, self._TIME_FORMAT)
/external/python/cpython3/Lib/test/
Dtest_time.py267 time.strptime(strf_output, format)
274 self.assertRaises(TypeError, time.strptime, b'2009', "%Y")
275 self.assertRaises(TypeError, time.strptime, '2009', b'%Y')
280 time.strptime('', '%D')
284 time.strptime('19', '%Y %')
726 t = time.strptime("UTC", "%Z")
728 t = time.strptime("+0500", "%z")
Dtest_strptime.py459 time.strptime("Feb 29", "%b %d")
463 time.strptime("Feb 29", "%b %d"),
464 time.strptime("Mar 1", "%b %d"))
471 eq(time.strptime('12 PM', '%I %p')[3], 12)
472 eq(time.strptime('12 AM', '%I %p')[3], 0)
/external/python/cpython2/Doc/library/
Dtime.rst80 :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`.
Ddatetime.rst557 :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/fonttools/Lib/fontTools/misc/
DtimeTools.py48 return calendar.timegm(time.strptime(value)) - epoch_diff
/external/autotest/contrib/
Dlog_distiller.py46 log_time = datetime.datetime.strptime(time_str, time_format)
47 now = datetime.datetime.strptime(time.strftime(time_format), time_format)
/external/autotest/server/cros/dynamic_suite/
Djob_status.py281 datetime.datetime.strptime(
288 datetime.datetime.strptime(
/external/python/cpython3/Doc/library/
Ddatetime.rst626 :ref:`strftime-strptime-behavior`.
635 :ref:`strftime-strptime-behavior`.
855 .. classmethod:: datetime.strptime(date_string, format)
858 *format*. This is equivalent to ``datetime(*(time.strptime(date_string,
860 can't be parsed by :func:`time.strptime` or if it returns a value which isn't a
862 :ref:`strftime-strptime-behavior`.
1288 :ref:`strftime-strptime-behavior`.
1297 :ref:`strftime-strptime-behavior`.
1315 >>> # Using datetime.strptime()
1316 >>> dt = datetime.strptime("21/11/06 16:30", "%d/%m/%y %H:%M")
[all …]
Dtime.rst52 represented internally as seconds since the epoch. Function :func:`strptime`
86 :func:`strptime`, and accepted by :func:`asctime`, :func:`mktime` and
88 :func:`gmtime`, :func:`localtime`, and :func:`strptime` also offer attribute
468 When used with the :func:`strptime` function, the ``%p`` directive only affects
477 When used with the :func:`strptime` function, ``%U`` and ``%W`` are only used in
501 .. function:: strptime(string[, format])
518 >>> time.strptime("30 Nov 00", "%d %b %y") # doctest: +NORMALIZE_WHITESPACE
529 directives than those listed. But ``strptime()`` is independent of any platform
537 :func:`localtime`, and :func:`strptime`. It is an object with a :term:`named
873 of many format specifiers in :func:`strftime` and :func:`strptime`.
/external/chromium-trace/catapult/common/lab/
Dcommits.py68 commit_time = datetime.datetime.strptime(
/external/toybox/toys/posix/
Dsort.c203 xx = strptime(x,"%b",&thyme); in compare_values()
205 yy = strptime(y,"%b",&thyme); in compare_values()
Ddate.c131 char *s = strptime(TT.d, TT.D+(*TT.D=='+'), &tm); in date_main()
/external/toybox/lib/
Dportability.h88 char *strptime(const char *buf, const char *format, struct tm *tm);
/external/python/apitools/apitools/base/protorpclite/
Dutil.py267 decoded_datetime = datetime.datetime.strptime(time_string, format_string)
/external/openssh/openbsd-compat/
DMakefile.in19 …0.o md5.o sigact.o strcasestr.o strlcat.o strlcpy.o strmode.o strnlen.o strptime.o strsep.o strton…

12345