17 #include "gtest/gtest.h" 25 TEST(TimeZone, ValueSemantics) {
33 TEST(TimeZone, Equality) {
40 EXPECT_EQ(implicit_utc, explicit_utc);
41 EXPECT_EQ(implicit_utc.name(), explicit_utc.
name());
48 TEST(TimeZone, CCTZConversion) {
54 TEST(TimeZone, DefaultTimeZones) {
69 EXPECT_EQ(tz, local_tz);
72 TEST(TimeZone, NamedTimeZones) {
74 EXPECT_EQ(
"America/New_York", nyc.
name());
76 EXPECT_EQ(
"Australia/Sydney", syd.name());
78 EXPECT_EQ(
"Fixed/UTC+03:25:45", fixed.name());
81 TEST(TimeZone, Failures) {
time_zone fixed_time_zone(const seconds &offset)
TimeZone FixedTimeZone(int seconds)
std::chrono::duration< std::int_fast64_t > seconds
time_zone utc_time_zone()
TEST(Symbolize, Unimplemented)
TimeZone LoadTimeZone(const std::string &name)