|
Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
|
#include <date_time.hpp>
Public Member Functions | |
| TOML_NODISCARD_CTOR | date_time () noexcept=default |
| Default constructor. Does not initialize the members. | |
| TOML_NODISCARD_CTOR constexpr | date_time (const toml::date &d, const toml::time &t) noexcept |
| Constructs a local date-time. | |
| TOML_NODISCARD_CTOR constexpr | date_time (const toml::date &d) noexcept |
| Constructs a local date-time. | |
| TOML_NODISCARD_CTOR constexpr | date_time (const toml::time &t) noexcept |
| Constructs a local date-time. | |
| TOML_NODISCARD_CTOR constexpr | date_time (const toml::date &d, const toml::time &t, const toml::time_offset &off) noexcept |
| Constructs an offset date-time. | |
| TOML_PURE_INLINE_GETTER constexpr bool | is_local () const noexcept |
| Returns true if this date_time does not contain timezone offset information. | |
Data Fields | |
| toml::date | date |
| The date component. | |
| toml::time | time |
| The time component. | |
| TOML_STD optional< toml::time_offset > | offset |
| The timezone offset component. | |
Friends | |
| TOML_PURE_GETTER friend constexpr bool | operator== (const date_time &lhs, const date_time &rhs) noexcept |
| Equality operator. | |
| TOML_PURE_INLINE_GETTER friend constexpr bool | operator!= (const date_time &lhs, const date_time &rhs) noexcept |
| Inequality operator. | |
| TOML_PURE_GETTER friend constexpr bool | operator< (const date_time &lhs, const date_time &rhs) noexcept |
| Less-than operator. | |
| TOML_PURE_GETTER friend constexpr bool | operator<= (const date_time &lhs, const date_time &rhs) noexcept |
| Less-than-or-equal-to operator. | |
| TOML_PURE_INLINE_GETTER friend constexpr bool | operator> (const date_time &lhs, const date_time &rhs) noexcept |
| Greater-than operator. | |
| TOML_PURE_INLINE_GETTER friend constexpr bool | operator>= (const date_time &lhs, const date_time &rhs) noexcept |
| Greater-than-or-equal-to operator. | |
| std::ostream & | operator<< (std::ostream &lhs, const date_time &rhs) |
| Prints a date_time out to a stream in RFC 3339 format. \detail \cpp std::cout << toml::date_time{ { 1987, 3, 16 }, { 10, 20, 34 } } << "\n"; std::cout << toml::date_time{ { 1987, 3, 16 }, { 10, 20, 34 }, { -2, -30 } } << "\n"; std::cout << toml::date_time{ { 1987, 3, 16 }, { 10, 20, 34 }, {} } << "\n"; \ecpp. | |
A date-time.
Definition at line 299 of file date_time.hpp.
|
defaultnoexcept |
Default constructor. Does not initialize the members.
|
inlineconstexprnoexcept |
Constructs a local date-time.
| d | The date component. |
| t | The time component. |
Definition at line 320 of file date_time.hpp.
|
inlineexplicitconstexprnoexcept |
Constructs a local date-time.
| d | The date component. |
Definition at line 330 of file date_time.hpp.
|
inlineexplicitconstexprnoexcept |
Constructs a local date-time.
| t | The time component. |
Definition at line 340 of file date_time.hpp.
|
inlineconstexprnoexcept |
Constructs an offset date-time.
| d | The date component. |
| t | The time component. |
| off | The timezone offset. |
Definition at line 352 of file date_time.hpp.
|
inlineconstexprnoexcept |
Returns true if this date_time does not contain timezone offset information.
Definition at line 358 of file date_time.hpp.
|
friend |
Inequality operator.
Definition at line 370 of file date_time.hpp.
|
friend |
Less-than operator.
Definition at line 376 of file date_time.hpp.
|
friend |
Prints a date_time out to a stream in RFC 3339 format. \detail \cpp std::cout << toml::date_time{ { 1987, 3, 16 }, { 10, 20, 34 } } << "\n"; std::cout << toml::date_time{ { 1987, 3, 16 }, { 10, 20, 34 }, { -2, -30 } } << "\n"; std::cout << toml::date_time{ { 1987, 3, 16 }, { 10, 20, 34 }, {} } << "\n"; \ecpp.
\out 1987-03-16T10:20:34 1987-03-16T10:20:34-02:30 1987-03-16T10:20:34Z \eout
Definition at line 414 of file date_time.hpp.
|
friend |
Less-than-or-equal-to operator.
Definition at line 384 of file date_time.hpp.
|
friend |
Equality operator.
Definition at line 362 of file date_time.hpp.
|
friend |
Greater-than operator.
Definition at line 392 of file date_time.hpp.
|
friend |
Greater-than-or-equal-to operator.
Definition at line 398 of file date_time.hpp.
| toml::date date_time::date |
The date component.
Definition at line 301 of file date_time.hpp.
| TOML_STD optional<toml::time_offset> date_time::offset |
The timezone offset component.
Definition at line 309 of file date_time.hpp.
| toml::time date_time::time |
The time component.
Definition at line 304 of file date_time.hpp.