AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Namespaces | Macros | Functions | Variables
TimeUtils.cpp File Reference
#include <chrono>
#include <ctime>
#include <iomanip>
#include <mutex>
#include <random>
#include <sstream>
#include "AVSCommon/Utils/Timing/TimeUtils.h"
#include "AVSCommon/Utils/Logger/Logger.h"
#include "AVSCommon/Utils/String/StringUtils.h"
Include dependency graph for TimeUtils.cpp:

Namespaces

 alexaClientSDK
 Whether or not curl logs should be emitted.
 
 alexaClientSDK::avsCommon
 
 alexaClientSDK::avsCommon::utils
 
 alexaClientSDK::avsCommon::utils::timing
 

Macros

#define LX(event)   alexaClientSDK::avsCommon::utils::logger::LogEntry(TAG, event)
 

Functions

static const std::string alexaClientSDK::avsCommon::utils::timing::TAG ("TimeUtils")
 String to identify log entries originating from this file. More...
 
static bool alexaClientSDK::avsCommon::utils::timing::convertToLocalTimeT (const std::tm *timeStruct, std::time_t *ret)
 

Variables

static const int alexaClientSDK::avsCommon::utils::timing::ENCODED_TIME_STRING_YEAR_STRING_LENGTH = 4
 The length of the year element in an ISO-8601 formatted string. More...
 
static const int alexaClientSDK::avsCommon::utils::timing::ENCODED_TIME_STRING_MONTH_STRING_LENGTH = 2
 The length of the month element in an ISO-8601 formatted string. More...
 
static const int alexaClientSDK::avsCommon::utils::timing::ENCODED_TIME_STRING_DAY_STRING_LENGTH = 2
 The length of the day element in an ISO-8601 formatted string. More...
 
static const int alexaClientSDK::avsCommon::utils::timing::ENCODED_TIME_STRING_HOUR_STRING_LENGTH = 2
 The length of the hour element in an ISO-8601 formatted string. More...
 
static const int alexaClientSDK::avsCommon::utils::timing::ENCODED_TIME_STRING_MINUTE_STRING_LENGTH = 2
 The length of the minute element in an ISO-8601 formatted string. More...
 
static const int alexaClientSDK::avsCommon::utils::timing::ENCODED_TIME_STRING_SECOND_STRING_LENGTH = 2
 The length of the second element in an ISO-8601 formatted string. More...
 
static const int alexaClientSDK::avsCommon::utils::timing::ENCODED_TIME_STRING_POSTFIX_STRING_LENGTH = 4
 The length of the post-fix element in an ISO-8601 formatted string. More...
 
static const std::string alexaClientSDK::avsCommon::utils::timing::ENCODED_TIME_STRING_DASH_SEPARATOR_STRING = "-"
 The dash separator used in an ISO-8601 formatted string. More...
 
static const std::string alexaClientSDK::avsCommon::utils::timing::ENCODED_TIME_STRING_T_SEPARATOR_STRING = "T"
 The 'T' separator used in an ISO-8601 formatted string. More...
 
static const std::string alexaClientSDK::avsCommon::utils::timing::ENCODED_TIME_STRING_COLON_SEPARATOR_STRING = ":"
 The colon separator used in an ISO-8601 formatted string. More...
 
static const std::string alexaClientSDK::avsCommon::utils::timing::ENCODED_TIME_STRING_PLUS_SEPARATOR_STRING = "+"
 The plus separator used in an ISO-8601 formatted string. More...
 
static const unsigned long alexaClientSDK::avsCommon::utils::timing::ENCODED_TIME_STRING_YEAR_OFFSET = 0
 The offset into an ISO-8601 formatted string where the year begins. More...
 
static const unsigned long alexaClientSDK::avsCommon::utils::timing::ENCODED_TIME_STRING_MONTH_OFFSET
 The offset into an ISO-8601 formatted string where the month begins. More...
 
static const unsigned long alexaClientSDK::avsCommon::utils::timing::ENCODED_TIME_STRING_DAY_OFFSET
 The offset into an ISO-8601 formatted string where the day begins. More...
 
static const unsigned long alexaClientSDK::avsCommon::utils::timing::ENCODED_TIME_STRING_HOUR_OFFSET
 The offset into an ISO-8601 formatted string where the hour begins. More...
 
static const unsigned long alexaClientSDK::avsCommon::utils::timing::ENCODED_TIME_STRING_MINUTE_OFFSET
 The offset into an ISO-8601 formatted string where the minute begins. More...
 
static const unsigned long alexaClientSDK::avsCommon::utils::timing::ENCODED_TIME_STRING_SECOND_OFFSET
 The offset into an ISO-8601 formatted string where the second begins. More...
 
static const unsigned long alexaClientSDK::avsCommon::utils::timing::ENCODED_TIME_STRING_EXPECTED_LENGTH
 The total expected length of an ISO-8601 formatted string. More...
 

Macro Definition Documentation

◆ LX

#define LX (   event)    alexaClientSDK::avsCommon::utils::logger::LogEntry(TAG, event)

Create a LogEntry using this file's TAG and the specified event string.

Parameters
Theevent string for this LogEntry.

AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0