struct
timeA local time-of-day.
Constructors, destructors, conversion operators
Public variables
Friends
- auto operator!=(const time& lhs, const time& rhs) → bool constexpr noexcept
- Inequality operator.
- auto operator<(const time& lhs, const time& rhs) → bool constexpr noexcept
- Less-than operator.
-
auto operator<<(std::
ostream& lhs, const time& rhs) → std:: ostream& - Prints a time out to a stream as
HH:MM:SS.FFFFFF
(per RFC 3339). - auto operator<=(const time& lhs, const time& rhs) → bool constexpr noexcept
- Less-than-or-equal-to operator.
- auto operator==(const time& lhs, const time& rhs) → bool constexpr noexcept
- Equality operator.
- auto operator>(const time& lhs, const time& rhs) → bool constexpr noexcept
- Greater-than operator.
- auto operator>=(const time& lhs, const time& rhs) → bool constexpr noexcept
- Greater-than-or-equal-to operator.
Function documentation
std:: ostream& operator<<(std:: ostream& lhs,
const time& rhs)
Prints a time out to a stream as HH:MM:SS.FFFFFF
(per RFC 3339).
std::cout << toml::time{ 10, 20, 34 } << "\n"; std::cout << toml::time{ 10, 20, 34, 500000000 } << "\n";
10:20:34 10:20:34.5