19 #include "gmock/gmock.h"
20 #include "gtest/gtest.h"
21 #include "absl/time/internal/test_util.h"
22 #include "absl/time/time.h"
71 TestFormatSpecifier(t, tz,
"%a",
"Thu");
72 TestFormatSpecifier(t, tz,
"%A",
"Thursday");
73 TestFormatSpecifier(t, tz,
"%b",
"Jan");
74 TestFormatSpecifier(t, tz,
"%B",
"January");
82 TestFormatSpecifier(t, tz,
"%p",
"AM");
83 TestFormatSpecifier(t, tz,
"%x",
"01/01/70");
84 TestFormatSpecifier(t, tz,
"%X",
"00:00:00");
122 EXPECT_EQ(
"Mon, 28 Jun 0077 09:08:07 +0000",
155 "2013-06-28 19:08:09 -0800", &t, &
err))
178 absl::ParseTime(
"%Y-%m-%d %H:%M:%S",
"2013-06-28 19:08:09", tz, &t, &e))
186 "2013-06-28 19:08:09 +0800", tz, &t, &e))
272 "%E*S",
"0.214748364801234567890123456789012345678901234567890123456789",
367 TEST(FormatParse, RoundTrip) {
403 #if !defined(_MSC_VER) && !defined(__EMSCRIPTEN__)
412 #endif // !_MSC_VER && !__EMSCRIPTEN__
415 TEST(FormatParse, RoundTripDistantFuture) {
428 TEST(FormatParse, RoundTripDistantPast) {