struct
#include <types.h>
date_time A date-time specification following RFC 3339.
Contents
Constructors, destructors, conversion operators
- date_time() defaulted
- date_time(std::string_view str) explicit
-
date_time(const config::
date& d, const config:: time& t) -
date_time(const config::
date& d, const config:: time& t, const time_ offset& o)
Public functions
-
auto UTC() const -> date_
time - auto ToString() const -> std::string
- Returns the representation in the RFC 3339 format.
- auto IsLocal() const -> bool
- Returns
true
if thisdate_
has no time zone offset.time -
auto operator==(const date_
time& other) const -> bool -
auto operator!=(const date_
time& other) const -> bool
Public variables
-
config::
date date -
config::
time time -
std::optional<time_
offset> offset
Friends
-
auto operator<<(std::ostream& os,
const date_
time& t) -> std::ostream& - Prints the RFC 3339 representation out to the stream.