Lines Matching refs:strptime

267 TEST(time, strptime) {  in TEST()  argument
274 strptime("11:14", "%R", &t); in TEST()
279 strptime("09:41:53", "%T", &t); in TEST()
305 ASSERT_EQ('\0', *strptime("2019-03-26", "%F", &tm)); in TEST()
317 ASSERT_EQ('\0', *strptime("AM", "%p", &tm)); in TEST()
321 ASSERT_EQ('\0', *strptime("am", "%p", &tm)); in TEST()
325 ASSERT_EQ('\0', *strptime("AM", "%P", &tm)); in TEST()
329 ASSERT_EQ('\0', *strptime("am", "%P", &tm)); in TEST()
337 ASSERT_EQ('\0', *strptime("2", "%u", &tm)); in TEST()
345 ASSERT_EQ('\0', *strptime("26-Mar-1980", "%v", &tm)); in TEST()
359 ASSERT_EQ('\0', *strptime("1 2 3", "%V %G %g", &tm)); in TEST()
374 ASSERT_EQ('\0', *strptime("GMT", "%Z", &tm)); in TEST()
381 ASSERT_EQ('\0', *strptime("UTC", "%Z", &tm)); in TEST()
388 ASSERT_EQ('\0', *strptime("CET", "%Z", &tm)); in TEST()
395 ASSERT_EQ('\0', *strptime("CEST", "%Z", &tm)); in TEST()
403 ASSERT_TRUE(strptime("PDT", "%Z", &tm) == nullptr); in TEST()
413 ASSERT_EQ('\0', *strptime("UT", "%z", &tm)); in TEST()
419 ASSERT_EQ('\0', *strptime("GMT", "%z", &tm)); in TEST()
426 ASSERT_EQ('\0', *strptime("Z", "%z", &tm)); in TEST()
433 ASSERT_EQ('\0', *strptime("PST", "%z", &tm)); in TEST()
438 ASSERT_EQ('\0', *strptime("PDT", "%z", &tm)); in TEST()
445 ASSERT_EQ('\0', *strptime("+01", "%z", &tm)); in TEST()
451 ASSERT_EQ('\0', *strptime("+0130", "%z", &tm)); in TEST()
457 ASSERT_EQ('\0', *strptime("+01:30", "%z", &tm)); in TEST()
1067 char* p = strptime("378720000x", "%s", &tm); in TEST()
1082 p = strptime("378691200x", "%s", &tm); in TEST()
1097 ASSERT_EQ(nullptr, strptime("x", "%s", &tm)); in TEST()