Commit 7c053486 by Abseil Team Committed by Copybara-Service

Import of CCTZ from GitHub.

PiperOrigin-RevId: 563201556
Change-Id: I2e1abde3944f3f3db532ce15db12adaf89207515
parent b9707b7d
...@@ -401,11 +401,11 @@ class civil_time { ...@@ -401,11 +401,11 @@ class civil_time {
: civil_time(ct.f_) {} : civil_time(ct.f_) {}
// Factories for the maximum/minimum representable civil_time. // Factories for the maximum/minimum representable civil_time.
static CONSTEXPR_F civil_time(max)() { static CONSTEXPR_F auto(max)() -> civil_time {
const auto max_year = (std::numeric_limits<std::int_least64_t>::max)(); const auto max_year = (std::numeric_limits<std::int_least64_t>::max)();
return civil_time(max_year, 12, 31, 23, 59, 59); return civil_time(max_year, 12, 31, 23, 59, 59);
} }
static CONSTEXPR_F civil_time(min)() { static CONSTEXPR_F auto(min)() -> civil_time {
const auto min_year = (std::numeric_limits<std::int_least64_t>::min)(); const auto min_year = (std::numeric_limits<std::int_least64_t>::min)();
return civil_time(min_year, 1, 1, 0, 0, 0); return civil_time(min_year, 1, 1, 0, 0, 0);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment