#include <DateTime.h>
◆ DateTime() [1/5]
Aws::Crt::DateTime::DateTime |
( |
| ) |
|
|
noexcept |
Initializes time point to epoch
◆ DateTime() [2/5]
Aws::Crt::DateTime::DateTime |
( |
const std::chrono::system_clock::time_point & |
timepointToAssign | ) |
|
|
noexcept |
Initializes time point to any other arbitrary timepoint
◆ DateTime() [3/5]
Aws::Crt::DateTime::DateTime |
( |
uint64_t |
millisSinceEpoch | ) |
|
|
noexcept |
Initializes time point to millis Since epoch
◆ DateTime() [4/5]
Aws::Crt::DateTime::DateTime |
( |
double |
epoch_millis | ) |
|
|
noexcept |
Initializes time point to epoch time in seconds.millis
◆ DateTime() [5/5]
Initializes time point to value represented by timestamp and format.
◆ GetDay()
Get the Day of the Month portion of this dateTime. localTime if true, return local time, otherwise return UTC
◆ GetDayOfWeek()
Get the Day of the Week portion of this dateTime. localTime if true, return local time, otherwise return UTC
◆ GetHour()
Get the Hour portion of this dateTime. localTime if true, return local time, otherwise return UTC
◆ GetLastError()
int Aws::Crt::DateTime::GetLastError |
( |
| ) |
const |
|
noexcept |
◆ GetMinute()
Get the Minute portion of this dateTime. localTime if true, return local time, otherwise return UTC
◆ GetMonth()
Get the Month portion of this dateTime. localTime if true, return local time, otherwise return UTC
◆ GetSecond()
Get the Second portion of this dateTime. localTime if true, return local time, otherwise return UTC
◆ GetYear()
Get the Year portion of this dateTime. localTime if true, return local time, otherwise return UTC
◆ IsDST()
Get whether or not this dateTime is in Daylight savings time. localTime if true, return local time, otherwise return UTC
◆ Millis()
uint64_t Aws::Crt::DateTime::Millis |
( |
| ) |
const |
|
noexcept |
Milliseconds since epoch of this datetime.
◆ Now()
Get an instance of DateTime representing this very instant.
◆ operator bool()
Aws::Crt::DateTime::operator bool |
( |
| ) |
const |
|
explicitnoexcept |
◆ operator!=()
◆ operator+()
DateTime Aws::Crt::DateTime::operator+ |
( |
const std::chrono::milliseconds & |
a | ) |
const |
|
noexcept |
◆ operator-() [1/2]
std::chrono::milliseconds Aws::Crt::DateTime::operator- |
( |
const DateTime & |
other | ) |
const |
|
noexcept |
Computes the difference between two DateTime instances and returns the difference in milliseconds.
◆ operator-() [2/2]
DateTime Aws::Crt::DateTime::operator- |
( |
const std::chrono::milliseconds & |
a | ) |
const |
|
noexcept |
◆ operator<()
◆ operator<=()
◆ operator=() [1/4]
Assign from an ISO8601 or RFC822 formatted string
◆ operator=() [2/4]
DateTime & Aws::Crt::DateTime::operator= |
( |
const std::chrono::system_clock::time_point & |
timepointToAssign | ) |
|
|
noexcept |
Assign from another time_point
◆ operator=() [3/4]
Assign from seconds.millis since epoch.
◆ operator=() [4/4]
Assign from millis since epoch.
◆ operator==()
◆ operator>()
◆ operator>=()
◆ SecondsWithMSPrecision()
double Aws::Crt::DateTime::SecondsWithMSPrecision |
( |
| ) |
const |
|
noexcept |
Get the representation of this datetime as seconds.milliseconds since epoch
◆ ToGmtString()
Convert dateTime to GMT time string using predefined format.
◆ ToLocalTimeString()
Convert dateTime to local time string using predefined format.
◆ UnderlyingTimestamp()
std::chrono::system_clock::time_point Aws::Crt::DateTime::UnderlyingTimestamp |
( |
| ) |
const |
|
noexcept |
In the likely case this class doesn't do everything you need to do, here's a copy of the time_point structure. Have fun.
The documentation for this class was generated from the following files: