werkzeugkiste::config::date_time struct
#include <types.h>

A date-time specification following RFC 3339.

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 this date_time has no time zone offset.
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.