8#include <aws/core/Core_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/logging/LogMacros.h>
66 DateTime(
const std::chrono::system_clock::time_point& timepointToAssign);
90 bool operator == (
const DateTime& other)
const;
93 bool operator != (
const DateTime& other)
const;
94 bool operator <= (
const DateTime& other)
const;
95 bool operator >= (
const DateTime& other)
const;
187 int GetDay(
bool localTime =
false)
const;
212 bool IsDST(
bool localTime =
false)
const;
255 std::chrono::milliseconds operator - (
const DateTime& other)
const;
257 std::chrono::system_clock::time_point m_time;
260 void ConvertTimestampStringToTimePoint(
const char* timestamp,
DateFormat format);
261 tm GetTimeStruct(
bool localTime)
const;
262 tm ConvertTimestampToLocalTimeStruct()
const;
263 tm ConvertTimestampToGmtStruct()
const;
DateTime(const char *timestamp, DateFormat format)
DateTime & operator=(int64_t millisSinceEpoch)
DateTime operator-(const std::chrono::milliseconds &a) const
int GetYear(bool localTime=false) const
static Aws::String CalculateLocalTimestampAsString(const char *formatStr)
DateTime(int64_t millisSinceEpoch)
DateTime operator+(const std::chrono::milliseconds &a) const
DateTime(const std::chrono::system_clock::time_point &timepointToAssign)
DateTime(double secondsSinceEpoch)
static std::chrono::milliseconds Diff(const DateTime &a, const DateTime &b)
Aws::String ToGmtString(const char *formatStr) const
static Aws::String CalculateGmtTimeWithMsPrecision()
DayOfWeek GetDayOfWeek(bool localTime=false) const
Aws::String ToGmtString(DateFormat format) const
int GetMinute(bool localTime=false) const
Aws::String ToLocalTimeString(DateFormat format) const
static int CalculateCurrentHour()
DateTime & operator=(const std::chrono::system_clock::time_point &timepointToAssign)
std::chrono::system_clock::time_point UnderlyingTimestamp() const
Month GetMonth(bool localTime=false) const
static int64_t CurrentTimeMillis()
bool IsDST(bool localTime=false) const
static Aws::String CalculateGmtTimestampAsString(const char *formatStr)
DateTime(const Aws::String ×tamp, DateFormat format)
double SecondsWithMSPrecision() const
int GetHour(bool localTime=false) const
DateTime & operator=(double secondsSinceEpoch)
Aws::String ToGmtStringWithMs() const
bool WasParseSuccessful() const
int GetDay(bool localTime=false) const
int GetSecond(bool localTime=false) const
static double ComputeCurrentTimestampInAmazonFormat()
DateTime & operator=(const Aws::String ×tamp)
Aws::String ToLocalTimeString(const char *formatStr) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String