Home
last modified time | relevance | path

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

123

/third_party/musl/libc-test/src/functionalext/time/
Dstrptime_ext.c53 strptime(buffer, "%c", &tmTime); in strptime_0100()
90 strptime(buffer, "%c %Z%z", &tmTime); in strptime_0200()
112 strptime(buffer, "%F", &tmTime); in strptime_0300()
130 strptime(buffer, "%g", &tmTime); in strptime_0400()
147 strptime(buffer, " %k", &tmTime); in strptime_0500()
164 strptime(buffer, " %l", &tmTime); in strptime_0600()
189 strptime(buffer, "%s", &tmTime); in strptime_0700()
207 strptime(buffer, "%u", &tmTime); in strptime_0800()
224 strptime(buffer, "%v", &tmTime); in strptime_0900()
242 char *result = strptime(buffer, "%G", &tmTime); in strptime_1000()
[all …]
/third_party/musl/porting/liteos_m/kernel/src/time/
Dstrptime.c9 char *strptime(const char *restrict s, const char *restrict f, struct tm *restrict tm) in strptime() function
45 s = strptime(s, nl_langinfo(D_T_FMT), tm); in strptime()
59 s = strptime(s, "%m/%d/%y", tm); in strptime()
110 s = strptime(s, nl_langinfo(T_FMT_AMPM), tm); in strptime()
114 s = strptime(s, "%H:%M", tm); in strptime()
123 s = strptime(s, "%H:%M:%S", tm); in strptime()
139 s = strptime(s, nl_langinfo(D_FMT), tm); in strptime()
143 s = strptime(s, nl_langinfo(T_FMT), tm); in strptime()
/third_party/musl/src/time/
Dstrptime.c9 char *strptime(const char *restrict s, const char *restrict f, struct tm *restrict tm) in strptime() function
45 s = strptime(s, nl_langinfo(D_T_FMT), tm); in strptime()
59 s = strptime(s, "%m/%d/%y", tm); in strptime()
110 s = strptime(s, nl_langinfo(T_FMT_AMPM), tm); in strptime()
114 s = strptime(s, "%H:%M", tm); in strptime()
123 s = strptime(s, "%H:%M:%S", tm); in strptime()
139 s = strptime(s, nl_langinfo(D_FMT), tm); in strptime()
143 s = strptime(s, nl_langinfo(T_FMT), tm); in strptime()
Dgetdate.c33 p = strptime(s, fmt, &tmbuf); in getdate()
/third_party/musl/porting/uniproton/kernel/src/time/
Dstrptime.c9 char *strptime(const char *restrict s, const char *restrict f, struct tm *restrict tm) in strptime() function
45 s = strptime(s, nl_langinfo(D_T_FMT), tm); in strptime()
59 s = strptime(s, "%m/%d/%y", tm); in strptime()
110 s = strptime(s, nl_langinfo(T_FMT_AMPM), tm); in strptime()
114 s = strptime(s, "%H:%M", tm); in strptime()
123 s = strptime(s, "%H:%M:%S", tm); in strptime()
139 s = strptime(s, nl_langinfo(D_FMT), tm); in strptime()
143 s = strptime(s, nl_langinfo(T_FMT), tm); in strptime()
/third_party/musl/porting/liteos_a/kernel/src/time/
Dstrptime.c9 char *strptime(const char *restrict s, const char *restrict f, struct tm *restrict tm) in strptime() function
45 s = strptime(s, nl_langinfo(D_T_FMT), tm); in strptime()
59 s = strptime(s, "%m/%d/%y", tm); in strptime()
110 s = strptime(s, nl_langinfo(T_FMT_AMPM), tm); in strptime()
114 s = strptime(s, "%H:%M", tm); in strptime()
123 s = strptime(s, "%H:%M:%S", tm); in strptime()
139 s = strptime(s, nl_langinfo(D_FMT), tm); in strptime()
143 s = strptime(s, nl_langinfo(T_FMT), tm); in strptime()
/third_party/musl/porting/linux/user/src/time/
Dstrptime.c131 char *strptime(const char *restrict s, const char *restrict f, struct tm *restrict tm) in strptime() function
173 s = strptime(s, nl_langinfo(D_T_FMT), tm); in strptime()
191 s = strptime(s, "%m/%d/%y", tm); in strptime()
197 s = strptime(s, "%Y-%m-%d", tm); in strptime()
265 s = strptime(s, nl_langinfo(T_FMT_AMPM), tm); in strptime()
271 s = strptime(s, "%H:%M", tm); in strptime()
297 s = strptime(s, "%H:%M:%S", tm); in strptime()
331 if (!(s = strptime(s, "%e-%b-%Y", tm))) { in strptime()
352 s = strptime(s, nl_langinfo(D_FMT), tm); in strptime()
358 s = strptime(s, nl_langinfo(T_FMT), tm); in strptime()
/third_party/musl/libc-test/src/functionalext/supplement/time/time_gtest/
Dtime_test.cpp189 char* p = strptime("1697414400x", "%s", &tm);
502 strptime("09:57", "%R", &tim);
507 strptime("09:58:55", "%T", &tim);
522 char* result = strptime("2023-10-20", "%F", &tim);
554 char* p = strptime("1697414400x", "%s", &tm);
578 EXPECT_EQ('\0', *strptime("AM", "%p", &tim));
582 EXPECT_EQ('\0', *strptime("am", "%p", &tim));
586 EXPECT_EQ('\0', *strptime("AM", "%P", &tim));
590 EXPECT_EQ('\0', *strptime("am", "%P", &tim));
605 char* result = strptime("5", "%u", &tim);
[all …]
/third_party/musl/libc-test/src/functional/
Dstrptime.c21 ret = strptime(s, format, &tm); in checkStrptime()
45 ret = strptime(s, "%z", &tm); in checkStrptimeTz()
Dtest_src_functional.gni57 "strptime",
/third_party/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/
D27-1-buildonly.c21 dummyvar = strptime; in dummyfcn()
/third_party/icu/tools/release/c/os-mapping/
DtestTimezone.c34 strptime("2006-06-01 12:00", "%Y-%m-%d %H:%M", &summerTimeTM); in main()
/third_party/python/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 %')
717 t = time.strptime("UTC", "%Z")
719 t = time.strptime("+0500", "%z")
Dtest_strptime.py462 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)
/third_party/python/Doc/library/
Ddatetime.rst736 :ref:`strftime-strptime-behavior`.
745 :ref:`strftime-strptime-behavior`.
1035 .. classmethod:: datetime.strptime(date_string, format)
1042 datetime(*(time.strptime(date_string, format)[0:6]))
1045 can't be parsed by :func:`time.strptime` or if it returns a value which isn't a
1047 :ref:`strftime-strptime-behavior`.
1509 :ref:`strftime-strptime-behavior`.
1518 :ref:`strftime-strptime-behavior`.
1541 >>> # Using datetime.strptime()
1542 >>> dt = datetime.strptime("21/11/06 16:30", "%d/%m/%y %H:%M")
[all …]
Dtime.rst47 * 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
470 When used with the :func:`strptime` function, the ``%p`` directive only affects
479 When used with the :func:`strptime` function, ``%U`` and ``%W`` are only used in
503 .. function:: strptime(string[, format])
520 >>> time.strptime("30 Nov 00", "%d %b %y") # doctest: +NORMALIZE_WHITESPACE
531 directives than those listed. But ``strptime()`` is independent of any platform
539 :func:`localtime`, and :func:`strptime`. It is an object with a :term:`named
903 of many format specifiers in :func:`strftime` and :func:`strptime`.
/third_party/rust/crates/libc/libc-test/semver/
Dlinux-musl.txt56 strptime
/third_party/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()
/third_party/toybox/porting/liteos_a/toys/posix/
Ddate.c128 char *s = strptime(TT.d, TT.D+(*TT.D=='+'), &tm); in date_main()
/third_party/musl/libc-test/src/api/
Dtime.c78 {char*(*p)(const char*restrict,const char*restrict,struct tm*restrict) = strptime;} in f()
/third_party/musl/porting/liteos_m/kernel/include/
Dtime.h121 char *strptime (const char *__restrict, const char *__restrict, struct tm *__restrict);
/third_party/musl/porting/liteos_m/user/include/
Dtime.h120 char *strptime (const char *__restrict, const char *__restrict, struct tm *__restrict);
/third_party/musl/porting/uniproton/kernel/include/
Dtime.h121 char *strptime (const char *__restrict, const char *__restrict, struct tm *__restrict);
/third_party/musl/ndk_musl_include/
Dtime.h120 char *strptime (const char *__restrict, const char *__restrict, struct tm *__restrict);

123