Time Shield Library
C++ library for working with time
|
Header file for time formatting utilities. More...
Go to the source code of this file.
Namespaces | |
namespace | time_shield |
Main namespace for the Time Shield library. | |
Macros | |
#define | _TIME_SHIELD_TIME_FORMATTING_HPP_INCLUDED |
Functions | |
void | time_shield::process_format_impl (const char &last_char, const size_t &repeat_count, const ts_t &ts, const tz_t &utc_offset, const DateTimeStruct &dt, std::string &result) |
template<class T = ts_t> | |
const std::string | time_shield::to_string (const std::string &format_str, const T ×tamp, const tz_t &utc_offset=0) |
Convert timestamp to string with custom format. | |
template<class T = ts_t> | |
const std::string | time_shield::to_str (const std::string &format_str, const T ×tamp, const tz_t &utc_offset=0) |
Alias for to_string function. | |
template<class T = ts_t> | |
const std::string | time_shield::to_iso8601_str (const T &ts) |
Converts a timestamp to an ISO8601 string. | |
template<class T = ts_t> | |
const std::string | time_shield::to_iso8601_date_str (const T &ts) |
Converts a timestamp to an ISO8601 date string. | |
template<class T = ts_t> | |
const std::string | time_shield::to_iso8601_time_str (const T &ts) |
Converts a timestamp to an ISO8601 time string. | |
template<class T = ts_t> | |
const std::string | time_shield::to_iso8601_time_utc_str (const T &ts) |
Converts a timestamp to an ISO8601 UTC time string. | |
template<class T = ts_t> | |
const std::string | time_shield::to_iso8601_utc_str (const T &ts) |
Converts a timestamp to an ISO8601 string in UTC format. | |
const std::string | time_shield::to_iso8601_utc_str_ms (const ts_ms_t &ts_ms) |
Converts a timestamp in milliseconds to an ISO8601 string in UTC format. | |
const std::string | time_shield::to_iso8601_str_ms (const ts_ms_t &ts_ms) |
Converts a timestamp in milliseconds to an ISO8601 string. | |
template<class T = ts_t> | |
const std::string | time_shield::to_iso8601_str (const T &ts, const tz_t &utc_offset) |
Converts a timestamp to an ISO8601 string with timezone offset. | |
const std::string | time_shield::to_iso8601_str_ms (const ts_ms_t &ts_ms, const tz_t &utc_offset) |
Converts a timestamp in milliseconds to an ISO8601 string with timezone offset. | |
const std::string | time_shield::to_mql5_date_time_str (const ts_t &ts) |
Converts a timestamp to a string in MQL5 date and time format. | |
const std::string | time_shield::to_mql5_full_str (const ts_t &ts) |
Alias for to_mql5_date_time_str function. | |
const std::string | time_shield::to_mql5_date_str (const ts_t &ts) |
Converts a timestamp to a string in MQL5 date format. | |
const std::string | time_shield::to_mql5_time_str (const ts_t &ts) |
Converts a timestamp to a string in MQL5 time format. | |
Header file for time formatting utilities.
This file contains functions for converting timestamps to formatted strings. It provides utilities for custom formatting based on user-defined patterns and for standard date-time string representations.
Definition in file time_formatting.hpp.
#define _TIME_SHIELD_TIME_FORMATTING_HPP_INCLUDED |
Definition at line 9 of file time_formatting.hpp.