class header::date#

class date#

Provides parsing and serialization for dealing with date.

Public Functions

inline explicit date(std::chrono::time_point<chrono::utc_clock> time)#

Construct by an UTC time.

inline explicit date(std::chrono::time_point<std::chrono::file_clock> time)#

Construct by a FILE time.

inline auto utc_time() -> std::chrono::time_point<chrono::utc_clock>#

Get UTC time.

inline auto file_time() -> std::chrono::time_point<std::chrono::file_clock>#

Get FILE time.

inline auto to_string() -> std::string#

Convert to string using rfc9110 date and time format.

Friends

friend auto operator==(const date&, const date&) -> bool = default#

Compare two date s for equality.

friend auto operator<=>(const date &lhs, const date &rhs) -> std::strong_ordering = default#

Three-way compare two date s.