Lines Matching refs:timestamp
267 const datetime::timestamp ts1 = datetime::timestamp::from_values( in ATF_TEST_CASE_BODY()
270 const datetime::timestamp ts2 = ts1; in ATF_TEST_CASE_BODY()
271 const datetime::timestamp ts3 = datetime::timestamp::from_values( in ATF_TEST_CASE_BODY()
284 const datetime::timestamp ts = datetime::timestamp::from_microseconds( in ATF_TEST_CASE_BODY()
297 datetime::timestamp::now().strftime("%Y-%m-%d %H:%M:%S")); in ATF_TEST_CASE_BODY()
299 datetime::set_mock_now(datetime::timestamp::from_values( in ATF_TEST_CASE_BODY()
302 datetime::timestamp::now().strftime("%Y-%m-%d %H:%M:%S")); in ATF_TEST_CASE_BODY()
304 datetime::timestamp::now().strftime("%Y-%m-%d %H:%M:%S")); in ATF_TEST_CASE_BODY()
317 const datetime::timestamp now = datetime::timestamp::now(); in ATF_TEST_CASE_BODY()
332 const datetime::timestamp first = datetime::timestamp::now(); in ATF_TEST_CASE_BODY()
334 const datetime::timestamp second = datetime::timestamp::now(); in ATF_TEST_CASE_BODY()
342 const datetime::timestamp ts1 = datetime::timestamp::from_values( in ATF_TEST_CASE_BODY()
347 const datetime::timestamp ts2 = datetime::timestamp::from_values( in ATF_TEST_CASE_BODY()
356 const datetime::timestamp ts1 = datetime::timestamp::from_values( in ATF_TEST_CASE_BODY()
360 const datetime::timestamp ts2= datetime::timestamp::from_values( in ATF_TEST_CASE_BODY()
369 const datetime::timestamp ts1 = datetime::timestamp::from_values( in ATF_TEST_CASE_BODY()
378 const datetime::timestamp ts1 = datetime::timestamp::from_values( in ATF_TEST_CASE_BODY()
389 const datetime::timestamp ts1 = datetime::timestamp::from_values( in ATF_TEST_CASE_BODY()
398 ATF_REQUIRE(datetime::timestamp::from_microseconds(1291970750123456LL) == in ATF_TEST_CASE_BODY()
399 datetime::timestamp::from_microseconds(1291970750123456LL)); in ATF_TEST_CASE_BODY()
406 ATF_REQUIRE(datetime::timestamp::from_microseconds(1291970750123456LL) != in ATF_TEST_CASE_BODY()
407 datetime::timestamp::from_microseconds(1291970750123455LL)); in ATF_TEST_CASE_BODY()
415 const datetime::timestamp ts1 = datetime::timestamp::from_microseconds( in ATF_TEST_CASE_BODY()
417 const datetime::timestamp ts2 = datetime::timestamp::from_microseconds( in ATF_TEST_CASE_BODY()
426 const datetime::timestamp ts1 = datetime::timestamp::from_microseconds( in ATF_TEST_CASE_BODY()
428 const datetime::timestamp ts2 = datetime::timestamp::from_microseconds( in ATF_TEST_CASE_BODY()
437 const datetime::timestamp ts1 = datetime::timestamp::from_microseconds( in ATF_TEST_CASE_BODY()
439 const datetime::timestamp ts2 = datetime::timestamp::from_microseconds( in ATF_TEST_CASE_BODY()
454 using datetime::timestamp; in ATF_TEST_CASE_BODY()
456 ATF_REQUIRE_EQ(timestamp::from_values(2014, 12, 11, 21, 43, 30, 1234), in ATF_TEST_CASE_BODY()
457 timestamp::from_values(2014, 12, 11, 21, 43, 0, 0) + in ATF_TEST_CASE_BODY()
459 ATF_REQUIRE_EQ(timestamp::from_values(2014, 12, 11, 22, 43, 7, 100), in ATF_TEST_CASE_BODY()
460 timestamp::from_values(2014, 12, 11, 21, 43, 0, 0) + in ATF_TEST_CASE_BODY()
469 using datetime::timestamp; in ATF_TEST_CASE_BODY()
472 timestamp ts = timestamp::from_values(2014, 12, 11, 21, 43, 0, 0); in ATF_TEST_CASE_BODY()
474 ATF_REQUIRE_EQ(timestamp::from_values(2014, 12, 11, 21, 43, 30, 1234), in ATF_TEST_CASE_BODY()
478 timestamp ts = timestamp::from_values(2014, 12, 11, 21, 43, 0, 0); in ATF_TEST_CASE_BODY()
479 ATF_REQUIRE_EQ(timestamp::from_values(2014, 12, 11, 22, 43, 7, 100), in ATF_TEST_CASE_BODY()
489 using datetime::timestamp; in ATF_TEST_CASE_BODY()
491 ATF_REQUIRE_EQ(timestamp::from_values(2014, 12, 11, 21, 43, 10, 4321), in ATF_TEST_CASE_BODY()
492 timestamp::from_values(2014, 12, 11, 21, 43, 40, 5555) - in ATF_TEST_CASE_BODY()
494 ATF_REQUIRE_EQ(timestamp::from_values(2014, 12, 11, 20, 43, 1, 300), in ATF_TEST_CASE_BODY()
495 timestamp::from_values(2014, 12, 11, 21, 43, 8, 400) - in ATF_TEST_CASE_BODY()
504 using datetime::timestamp; in ATF_TEST_CASE_BODY()
507 timestamp ts = timestamp::from_values(2014, 12, 11, 21, 43, 40, 5555); in ATF_TEST_CASE_BODY()
509 ATF_REQUIRE_EQ(timestamp::from_values(2014, 12, 11, 21, 43, 10, 4321), in ATF_TEST_CASE_BODY()
513 timestamp ts = timestamp::from_values(2014, 12, 11, 21, 43, 8, 400); in ATF_TEST_CASE_BODY()
514 ATF_REQUIRE_EQ(timestamp::from_values(2014, 12, 11, 20, 43, 1, 300), in ATF_TEST_CASE_BODY()
523 const datetime::timestamp ts1 = datetime::timestamp::from_microseconds( in ATF_TEST_CASE_BODY()
525 const datetime::timestamp ts2 = datetime::timestamp::from_microseconds( in ATF_TEST_CASE_BODY()
527 const datetime::timestamp ts3 = datetime::timestamp::from_microseconds( in ATF_TEST_CASE_BODY()
548 str << datetime::timestamp::from_microseconds(1291970750123456LL); in ATF_TEST_CASE_BODY()
553 str << datetime::timestamp::from_microseconds(1028309798759812LL); in ATF_TEST_CASE_BODY()