Struct Year¶
Defined in File Timezone.hpp
Struct Documentation¶
-
struct Year¶
Like std::chrono::year, except it has a greater range. adapted from https://howardhinnant.github.io/date_algorithms.html
Public Functions
-
inline explicit constexpr Year(int64_t y = 0) noexcept¶
-
inline explicit constexpr operator int64_t() const noexcept¶
-
inline constexpr bool is_leap() const noexcept(noexcept(value_ % 100))¶
Public Static Functions
Friends
- inline friend constexpr friend Year operator+ (Year const &y, std::chrono::years d) noexcept
- inline friend constexpr friend Year operator+ (std::chrono::years d, Year const &y) noexcept
- inline friend constexpr friend Year operator- (Year const &y, std::chrono::years d) noexcept
- inline friend constexpr friend std::chrono::years operator- (Year const &a, Year const &b) noexcept
-
inline explicit constexpr Year(int64_t y = 0) noexcept¶