A point in time.
More...
#include <timestamp.h>
◆ ValueType
◆ TimeStamp() [1/2]
| sen::TimeStamp::TimeStamp |
( |
| ) |
|
|
constexprdefaultnoexcept |
◆ TimeStamp() [2/2]
| sen::TimeStamp::TimeStamp |
( |
Duration | timeSinceEpoch | ) |
|
|
inlineexplicitconstexprnoexcept |
◆ ~TimeStamp()
| sen::TimeStamp::~TimeStamp |
( |
| ) |
|
|
defaultnoexcept |
◆ make()
| Result< TimeStamp, std::string > sen::TimeStamp::make |
( |
const std::string_view | iso8601Time | ) |
|
|
static |
◆ sinceEpoch()
| Duration sen::TimeStamp::sinceEpoch |
( |
| ) |
const |
|
inlinenodiscardconstexprnoexcept |
Time passed since 1 January 1970 UTC.
◆ operator==()
| bool sen::TimeStamp::operator== |
( |
const TimeStamp & | other | ) |
const |
|
inlineconstexprnoexcept |
Compares two Timestamps to determine if they are equal.
◆ operator!=()
| bool sen::TimeStamp::operator!= |
( |
const TimeStamp & | other | ) |
const |
|
inlineconstexprnoexcept |
Compares two Timestamps to determine if they are not equal.
◆ operator<()
| bool sen::TimeStamp::operator< |
( |
const TimeStamp & | other | ) |
const |
|
inlineconstexprnoexcept |
True if *this is less than other.
◆ operator<=()
| bool sen::TimeStamp::operator<= |
( |
const TimeStamp & | other | ) |
const |
|
inlineconstexprnoexcept |
True if *this is less or equal than other.
◆ operator>()
| bool sen::TimeStamp::operator> |
( |
const TimeStamp & | other | ) |
const |
|
inlineconstexprnoexcept |
True if *this is greater than other.
◆ operator>=()
| bool sen::TimeStamp::operator>= |
( |
const TimeStamp & | other | ) |
const |
|
inlineconstexprnoexcept |
True if *this is greater or equal than other.
◆ operator+=()
Adds other to *this and returns *this.
◆ operator+()
◆ operator-=()
Removes other from *this and returns *this.
◆ operator-() [1/2]
◆ operator-() [2/2]
◆ toUtcString()
| std::string sen::TimeStamp::toUtcString |
( |
| ) |
const |
|
nodiscard |
UTC string representation of this time point.
◆ toLocalString()
| std::string sen::TimeStamp::toLocalString |
( |
| ) |
const |
|
nodiscard |
Local string representation of this time point.
The documentation for this class was generated from the following file: