|
Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
|
#include <date_time.hpp>
Public Member Functions | |
| TOML_NODISCARD_CTOR | time_offset () noexcept=default |
| Default constructor. Does not initialize the members. | |
| TOML_NODISCARD_CTOR constexpr | time_offset (H h, M m) noexcept |
| Constructs a timezone offset from individual hour and minute totals. | |
Data Fields | |
| int16_t | minutes |
| Offset from UTC+0, in minutes. | |
Friends | |
| TOML_PURE_INLINE_GETTER friend constexpr bool | operator== (time_offset lhs, time_offset rhs) noexcept |
| Equality operator. | |
| TOML_PURE_INLINE_GETTER friend constexpr bool | operator!= (time_offset lhs, time_offset rhs) noexcept |
| Inequality operator. | |
| TOML_PURE_INLINE_GETTER friend constexpr bool | operator< (time_offset lhs, time_offset rhs) noexcept |
| Less-than operator. | |
| TOML_PURE_INLINE_GETTER friend constexpr bool | operator<= (time_offset lhs, time_offset rhs) noexcept |
| Less-than-or-equal-to operator. | |
| TOML_PURE_INLINE_GETTER friend constexpr bool | operator> (time_offset lhs, time_offset rhs) noexcept |
| Greater-than operator. | |
| TOML_PURE_INLINE_GETTER friend constexpr bool | operator>= (time_offset lhs, time_offset rhs) noexcept |
| Greater-than-or-equal-to operator. | |
| std::ostream & | operator<< (std::ostream &lhs, const time_offset &rhs) |
Prints a time_offset out to a stream as +-HH:MM or Z (per RFC 3339). \detail \cpp std::cout << toml::time_offset{ 2, 30 } << "\n"; std::cout << toml::time_offset{ 2, -30 } << "\n"; std::cout << toml::time_offset{} << "\n"; std::cout << toml::time_offset{ -2, 30 } << "\n"; std::cout << toml::time_offset{ -2, -30 } << "\n"; \ecpp. | |
A timezone offset.
Definition at line 196 of file date_time.hpp.
|
defaultnoexcept |
Default constructor. Does not initialize the members.
|
inlineconstexprnoexcept |
Constructs a timezone offset from individual hour and minute totals.
\detail \cpp std::cout << toml::time_offset{ 2, 30 } << "\n"; std::cout << toml::time_offset{ -2, 30 } << "\n"; std::cout << toml::time_offset{ -2, -30 } << "\n"; std::cout << toml::time_offset{ 0, 0 } << "\n"; \ecpp
\out +02:30 -01:30 -02:30 Z \eout
| H | An integral type. |
| M | An integral type. |
| h | The total hours. |
| m | The total minutes. |
Definition at line 227 of file date_time.hpp.
|
friend |
Inequality operator.
Definition at line 240 of file date_time.hpp.
|
friend |
Less-than operator.
Definition at line 246 of file date_time.hpp.
|
friend |
Prints a time_offset out to a stream as +-HH:MM or Z (per RFC 3339). \detail \cpp std::cout << toml::time_offset{ 2, 30 } << "\n"; std::cout << toml::time_offset{ 2, -30 } << "\n"; std::cout << toml::time_offset{} << "\n"; std::cout << toml::time_offset{ -2, 30 } << "\n"; std::cout << toml::time_offset{ -2, -30 } << "\n"; \ecpp.
\out +02:30 +01:30 Z -01:30 -02:30 \eout
Definition at line 284 of file date_time.hpp.
|
friend |
Less-than-or-equal-to operator.
Definition at line 252 of file date_time.hpp.
|
friend |
Equality operator.
Definition at line 234 of file date_time.hpp.
|
friend |
Greater-than operator.
Definition at line 258 of file date_time.hpp.
|
friend |
Greater-than-or-equal-to operator.
Definition at line 264 of file date_time.hpp.
| int16_t time_offset::minutes |
Offset from UTC+0, in minutes.
Definition at line 198 of file date_time.hpp.