eckit::Time class

Public static variables

static std::uint64_t secondsInMinute constexpr
static std::uint64_t secondsInHour constexpr
static std::uint64_t secondsInDay constexpr
static std::uint64_t secondsInWeek constexpr

Public static functions

static auto now() -> Time

Constructors, destructors, conversion operators

Time(long hours, long minutes, long seconds, bool extended = false)
Time(long seconds = 0, bool extended = false)
Time(const std::string& time, bool extended = false)
Time(const Time&)
~Time()
operator std::string() const
operator Second() const

Public functions

auto operator=(const Time&) -> Time&
auto operator==(const Time& other) const -> bool
auto operator!=(const Time& other) const -> bool
auto operator>(const Time& other) const -> bool
auto operator<(const Time& other) const -> bool
auto operator>=(const Time& other) const -> bool
auto operator<=(const Time& other) const -> bool
auto operator-(const Time& other) const -> Second
auto operator+=(const Second& sec) -> Time&
auto operator-=(const Second& sec) -> Time&
auto hours() const -> long
auto minutes() const -> long
auto seconds() const -> long
auto hhmmss() const -> long
void dump(DumpLoad&) const
void load(DumpLoad&)
void hash(Hash&) const

Friends

auto operator<<(std::ostream& s, const Time& t) -> std::ostream&
This website is beyond its original expiry date and the content may be out of date. The site owner has been notified and may choose to extend the expiry date and remove this banner. If you have any questions about this, please visit our support portal.