A moment of time.
More...
#include <ignite_timestamp.h>
A moment of time.
This is modeled after java.time.Instant.
◆ ignite_timestamp() [1/2]
| ignite::ignite_timestamp::ignite_timestamp |
( |
| ) |
|
|
constexprdefaultnoexcept |
◆ ignite_timestamp() [2/2]
| ignite::ignite_timestamp::ignite_timestamp |
( |
std::int64_t | seconds, |
|
|
std::int32_t | nanos ) |
|
inlineconstexpr |
Constructor.
- Parameters
-
| seconds | Number of seconds since 00:00 hours, Jan 1, 1970 UTC. |
| nanos | Fractional second component in nanoseconds, from 0 to 999,999,999. |
◆ compare()
|
|
inlinenodiscardconstexprnoexcept |
compare to another value.
- Parameters
-
| other | Instance to compare to. |
- Returns
- Zero if equals, negative number if less, and positive if greater.
◆ get_epoch_second()
| std::int64_t ignite::ignite_timestamp::get_epoch_second |
( |
| ) |
const |
|
inlinenodiscardconstexprnoexcept |
Gets the number of seconds since 00:00 hours, Jan 1, 1970 UTC.
◆ get_nano()
| std::int32_t ignite::ignite_timestamp::get_nano |
( |
| ) |
const |
|
inlinenodiscardconstexprnoexcept |
Gets the number of nanoseconds from the start of the second.
The documentation for this class was generated from the following file: