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 (char last_char, size_t repeat_count, ts_t ts, 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, T timestamp, 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, T timestamp, tz_t utc_offset=0) |
Alias for to_string function. | |
template<class T = ts_ms_t> | |
const std::string | time_shield::to_string_ms (const std::string &format_str, T timestamp, tz_t utc_offset=0) |
Convert timestamp in milliseconds to string with custom format. | |
template<class T = ts_t> | |
const std::string | time_shield::to_str_ms (const std::string &format_str, T timestamp, tz_t utc_offset=0) |
Alias for to_string function. | |
template<class T = ts_t> | |
const std::string | time_shield::to_iso8601 (T ts) |
Converts a timestamp to an ISO8601 string. | |
template<class T = ts_t> | |
const std::string | time_shield::to_iso8601_date (T ts) |
Converts a timestamp to an ISO8601 date string. | |
template<class T = ts_t> | |
const std::string | time_shield::to_iso8601_time (T ts) |
Converts a timestamp to an ISO8601 time string. | |
template<class T = ts_t> | |
const std::string | time_shield::to_iso8601_time_utc (T ts) |
Converts a timestamp to an ISO8601 UTC time string. | |
template<class T = ts_t> | |
const std::string | time_shield::to_iso8601_utc (T ts) |
Converts a timestamp to an ISO8601 string in UTC format. | |
const std::string | time_shield::to_iso8601_utc_ms (ts_ms_t ts_ms) |
Converts a timestamp in milliseconds to an ISO8601 string in UTC format. | |
const std::string | time_shield::to_iso8601_ms (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 (T ts, tz_t utc_offset) |
Converts a timestamp to an ISO8601 string with timezone offset. | |
const std::string | time_shield::to_iso8601_ms (ts_ms_t ts_ms, 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 (ts_t ts) |
Converts a timestamp to a string in MQL5 date and time format. | |
const std::string | time_shield::to_mql5_full (ts_t ts) |
Alias for to_mql5_date_time_str function. | |
const std::string | time_shield::to_mql5_date (ts_t ts) |
Converts a timestamp to a string in MQL5 date format. | |
const std::string | time_shield::to_mql5_time (ts_t ts) |
Converts a timestamp to a string in MQL5 time format. | |
const std::string | time_shield::to_windows_filename (ts_t ts) |
Converts a timestamp in seconds to a Windows-compatible filename format. | |
const std::string | time_shield::to_windows_filename_ms (ts_ms_t ts) |
Converts a timestamp in milliseconds to a Windows-compatible filename format. | |
std::string | time_shield::to_human_readable (ts_t ts) |
Converts a timestamp in seconds to a human-readable format. | |
std::string | time_shield::to_human_readable_ms (ts_ms_t ts) |
Converts a timestamp in milliseconds to a human-readable 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.