![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <TimePoint.h>
Public Member Functions | |
TimePoint () | |
bool | setTime_ISO_8601 (const std::string &time_ISO_8601) |
std::string | getTime_ISO_8601 () const |
int64_t | getTime_Unix () const |
std::chrono::system_clock::time_point | getTime_Utc_TimePoint () const |
Static Public Member Functions | |
static TimePoint | now () |
A simple utility class that is useful in our SDK to map between ISO-8601 and Unix (epoch) time.
alexaClientSDK::avsCommon::utils::timing::TimePoint::TimePoint | ( | ) |
Constructor.
std::string alexaClientSDK::avsCommon::utils::timing::TimePoint::getTime_ISO_8601 | ( | ) | const |
Returns the time managed by this object in ISO-8601 format.
int64_t alexaClientSDK::avsCommon::utils::timing::TimePoint::getTime_Unix | ( | ) | const |
Returns the time managed by this object in Unix epoch time format.
std::chrono::system_clock::time_point alexaClientSDK::avsCommon::utils::timing::TimePoint::getTime_Utc_TimePoint | ( | ) | const |
Returns the time managed by this object in UTC time point format.
|
static |
bool alexaClientSDK::avsCommon::utils::timing::TimePoint::setTime_ISO_8601 | ( | const std::string & | time_ISO_8601 | ) |
Sets the time with an ISO-8601 formatted string. This will update the object's Unix time to the relative value.
time_ISO_8601 | A string representation of time in ISO-8601 format. |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0