struct
#include <types.h>
date Represents a local date.
Contents
Constructors, destructors, conversion operators
Public functions
- auto ToString() const -> std::string
- Returns "YYYY-mm-dd".
- auto IsValid() const -> bool
- Returns true if this is a valid date.
- auto operator==(const date& other) const -> bool
- auto operator!=(const date& other) const -> bool
- auto operator<(const date& other) const -> bool
- auto operator<=(const date& other) const -> bool
- auto operator>(const date& other) const -> bool
- auto operator>=(const date& other) const -> bool
- auto operator++() -> date&
- auto operator--() -> date&
Public variables
Friends
- auto operator<<(std::ostream& os, const date& d) -> std::ostream&
- Overloaded stream operator.
Function documentation
werkzeugkiste:: config:: date:: date(std::string_view str) explicit
Parses a string representation.
Supported formats are:
- Y-m-d
- d.m.Y