AWS SDK for C++AWS SDK for C++ Version 1.11.792 |
#include <DateTime.h>
Wrapper for timestamp functionality.
Definition at line 55 of file DateTime.h.
Initializes time point to epoch
Initializes time point to any other arbitrary timepoint
Initializes time point to millis Since epoch
Initializes time point to epoch time in seconds with a millis mantissa,
i.e. 1.1 would be 1100 milliseconds
Initializes time point to epoch time in seconds
Initializes time point to value represented by timestamp and format.
Initializes time point to value represented by timestamp and format.
Calculates the current hour of the day in localtime.
Calculates the current gmt timestamp, formats it, and returns it as a string
Calculates the current time in GMT with millisecond precision using the format "Year-month-day hours:minutes:seconds.milliseconds"
Calculates the current local timestamp, formats it and returns it as a string
The amazon timestamp format is a double with seconds.milliseconds
Get the millis since epoch representing this very instant.
Compute the difference between two timestamps.
false)
const
Get the Day of the Month portion of this dateTime. localTime if true, return local time, otherwise return UTC
Get the Day of the Week portion of this dateTime. localTime if true, return local time, otherwise return UTC
false)
const
Get the Hour portion of this dateTime. localTime if true, return local time, otherwise return UTC
false)
const
Get the Minute portion of this dateTime. localTime if true, return local time, otherwise return UTC
Get the Month portion of this dateTime. localTime if true, return local time, otherwise return UTC
false)
const
Get the Second portion of this dateTime. localTime if true, return local time, otherwise return UTC
false)
const
Get the Year portion of this dateTime. localTime if true, return local time, otherwise return UTC
false)
const
Get whether or not this dateTime is in Daylight savings time. localTime if true, return local time, otherwise return UTC
Milliseconds since epoch of this datetime.
Get an instance of DateTime representing this very instant.
Assign from an ISO8601 or RFC822 formatted string
Assign from another time_point
Initializes time point to epoch time in seconds with a millis mantissa,
i.e. 1.1 would be 1100 milliseconds
Assign from millis since epoch.
Get the seconds without millisecond precision.
Get the representation of this datetime as seconds with a millis mantissa since epoch
i.e. 1.1 would be 1100 milliseconds
Convert dateTime to GMT time string using arbitrary format.
Convert dateTime to GMT time string using predefined format.
Convert dateTime to GMT time string using predefined format.
Convert dateTime to local time string using arbitrary format.
Convert dateTime to local time string using predefined format.
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.
Whether or not parsing the timestamp from string was successful.
Definition at line 130 of file DateTime.h.