Time Shield Library
C++ library for working with time
|
Utility functions for converting between time units. More...
Topics | |
Time Zone Conversions | |
Helpers for converting regional time zones to GMT. | |
Time structure conversions | |
Functions | |
int | time_shield::ns_of_sec (double ts) |
Get the nanosecond part of a floating-point timestamp. | |
int | time_shield::us_of_sec (double ts) |
Get the microsecond part of a floating-point timestamp. | |
int | time_shield::ms_of_sec (double ts) |
Get the millisecond part of a floating-point timestamp. | |
int | time_shield::ms_of_ts (long ts_ms) |
Get the millisecond part of a millisecond timestamp. | |
long | time_shield::sec_to_ms (double sec) |
Convert seconds to milliseconds. | |
long | time_shield::ms_to_sec (long ms) |
Convert milliseconds to seconds (integer part). | |
double | time_shield::ms_to_fsec (long ms) |
Convert milliseconds to floating-point seconds. | |
long | time_shield::min_to_ms (double min) |
Convert minutes to milliseconds. | |
int | time_shield::ms_to_min (long ms) |
Convert milliseconds to minutes (integer part). | |
long | time_shield::min_to_sec (double min) |
Convert minutes to seconds. | |
int | time_shield::sec_to_min (long sec) |
Convert seconds to minutes (integer part). | |
double | time_shield::min_to_fsec (double min) |
Convert minutes to floating-point seconds. | |
double | time_shield::sec_to_fmin (long sec) |
Convert seconds to floating-point minutes. | |
long | time_shield::hour_to_ms (double hr) |
Convert hours to milliseconds. | |
int | time_shield::ms_to_hour (long ms) |
Convert milliseconds to hours (integer part). | |
long | time_shield::hour_to_sec (double hr) |
Convert hours to seconds. | |
int | time_shield::sec_to_hour (long sec) |
Convert seconds to hours (integer part). | |
double | time_shield::hour_to_fsec (double hr) |
Convert hours to floating-point seconds. | |
double | time_shield::sec_to_fhour (long sec) |
Convert seconds to floating-point hours. | |
int | time_shield::hour24_to_12 (int hour) |
Convert a 24-hour format hour to a 12-hour format. | |
int | time_shield::h24_to_h12 (int hour) |
Alias for hour24_to_12. | |
long | time_shield::get_unix_year (long ts) |
Convert a UNIX timestamp to a year. | |
long | time_shield::unix_year (long ts) |
Alias for get_unix_year function. | |
long | time_shield::to_unix_year (long ts) |
Alias for get_unix_year function. | |
long | time_shield::get_year (long ts) |
Get the year from a timestamp. | |
long | time_shield::year (long ts) |
Alias for get_year. | |
long | time_shield::to_year (long ts) |
Alias for get_year. | |
long | time_shield::get_year_ms (long ts_ms) |
Get the year from a millisecond timestamp. | |
long | time_shield::year_ms (long ts_ms) |
Alias for get_year_ms. | |
long | time_shield::to_year_ms (long ts_ms) |
Alias for get_year_ms. | |
DateTimeStruct | time_shield::to_date_time (long ts) |
Convert a timestamp to a DateTimeStruct. | |
DateTimeStruct | time_shield::to_dt (long ts) |
Alias for to_date_time. | |
MqlDateTime | time_shield::to_date_time_mql (long ts) |
Convert a timestamp to the standard MqlDateTime structure. | |
MqlDateTime | time_shield::to_mql_dt (long ts) |
Alias for to_date_time_mql. | |
DateTimeStruct | time_shield::to_date_time_ms (long ts_ms) |
Convert a timestamp in milliseconds to DateTimeStruct. | |
DateTimeStruct | time_shield::to_dt_ms (long ts_ms) |
Alias for to_date_time_ms. | |
long | time_shield::dt_to_timestamp (const DateTimeStruct &dt) |
Convert a DateTimeStruct to timestamp. | |
long | time_shield::dt_to_timestamp (const MqlDateTime &dt) |
Convert an MqlDateTime structure to timestamp. | |
long | time_shield::to_timestamp (const DateTimeStruct &dt) |
Alias for dt_to_timestamp. | |
long | time_shield::to_timestamp (const MqlDateTime &dt) |
Alias for dt_to_timestamp taking MqlDateTime. | |
long | time_shield::to_timestamp (long year, int mon, int day, int hour=0, int min=0, int sec=0) |
Convert date and time values to a timestamp. | |
long | time_shield::to_ts (long year, int mon, int day, int hour=0, int min=0, int sec=0) |
Alias for to_timestamp with explicit date fields. | |
long | time_shield::to_timestamp_ms (long year, int mon, int day, int hour=0, int min=0, int sec=0, int ms=0) |
Convert date and time values to a timestamp in milliseconds. | |
long | time_shield::to_ts_ms (long year, int mon, int day, int hour=0, int min=0, int sec=0, int ms=0) |
Alias for to_timestamp_ms. | |
long | time_shield::ts_ms (long year, int mon, int day, int hour=0, int min=0, int sec=0, int ms=0) |
Alias for to_timestamp_ms. | |
long | time_shield::dt_to_timestamp_ms (const DateTimeStruct &dt) |
Convert a DateTimeStruct to a timestamp in milliseconds. | |
long | time_shield::dt_to_timestamp_ms (const MqlDateTime &dt) |
Convert an MqlDateTime structure to a timestamp in milliseconds. | |
long | time_shield::to_timestamp_ms (const DateTimeStruct &dt) |
Alias for dt_to_timestamp_ms. | |
long | time_shield::to_timestamp_ms (const MqlDateTime &dt) |
Alias for dt_to_timestamp_ms. | |
double | time_shield::dt_to_ftimestamp (const DateTimeStruct &dt) |
Convert a DateTimeStruct to floating-point timestamp. | |
double | time_shield::dt_to_ftimestamp (const MqlDateTime &dt) |
Convert an MqlDateTime structure to floating-point timestamp. | |
double | time_shield::to_ftimestamp (const DateTimeStruct &dt) |
Alias for dt_to_ftimestamp. | |
double | time_shield::to_ftimestamp (const MqlDateTime &dt) |
Alias for dt_to_ftimestamp. | |
long | time_shield::start_of_day (long ts) |
Get the start of the day for a timestamp. | |
long | time_shield::day_start (long ts) |
Alias for start_of_day. | |
long | time_shield::start_of_prev_day (long ts, int days=1) |
Get the start of the previous day. | |
long | time_shield::previous_day_start (long ts, int days=1) |
Alias for start_of_prev_day. | |
long | time_shield::start_of_day_sec (long ts_ms) |
Get the start of the day in seconds from milliseconds timestamp. | |
long | time_shield::day_start_sec (long ts_ms) |
Alias for start_of_day_sec. | |
long | time_shield::start_of_day_ms (long ts_ms) |
Get the start of the day for a millisecond timestamp. | |
long | time_shield::day_start_ms (long ts_ms) |
Alias for start_of_day_ms. | |
long | time_shield::start_of_next_day (long ts, int days=1) |
Get the start of the next day. | |
long | time_shield::next_day_start (long ts, int days=1) |
Alias for start_of_next_day. | |
long | time_shield::start_of_next_day_ms (long ts_ms, int days=1) |
Get the start of the next day in milliseconds. | |
long | time_shield::next_day_start_ms (long ts_ms, int days=1) |
Alias for start_of_next_day_ms. | |
long | time_shield::next_day (long ts, int days=1) |
Add days to a timestamp without adjusting to start of day. | |
long | time_shield::next_day_ms (long ts_ms, int days=1) |
Add days to a millisecond timestamp without adjusting to start of day. | |
long | time_shield::end_of_day (long ts) |
Get the end of the day for a timestamp. | |
long | time_shield::day_end (long ts) |
Alias for end_of_day. | |
long | time_shield::end_of_day_sec (long ts_ms) |
Get the end of the day in seconds from milliseconds timestamp. | |
long | time_shield::day_end_sec (long ts_ms) |
Alias for end_of_day_sec. | |
long | time_shield::end_of_day_ms (long ts_ms) |
Get the end of the day for a millisecond timestamp. | |
long | time_shield::day_end_ms (long ts_ms) |
Alias for end_of_day_ms. | |
Weekday | time_shield::day_of_week_date (long year, int month, int day) |
Get the day of the week for a date. | |
Weekday | time_shield::get_weekday (long year, int month, int day) |
Alias for day_of_week_date. | |
Weekday | time_shield::day_of_week (long year, int month, int day) |
Alias for day_of_week_date. | |
Weekday | time_shield::get_weekday_from_date (const DateTimeStruct &dt) |
Get weekday from a DateTimeStruct. | |
Weekday | time_shield::get_weekday_from_date (const MqlDateTime &dt) |
Get weekday from a MqlDateTime structure. | |
Weekday | time_shield::day_of_week_dt (const DateTimeStruct &dt) |
Alias for get_weekday_from_date with DateTimeStruct. | |
Weekday | time_shield::day_of_week (const DateTimeStruct &dt) |
Alias for get_weekday_from_date with DateTimeStruct. | |
Weekday | time_shield::day_of_week_dt (const MqlDateTime &dt) |
Alias for get_weekday_from_date with MqlDateTime. | |
Weekday | time_shield::day_of_week (const MqlDateTime &dt) |
Alias for get_weekday_from_date with MqlDateTime. | |
Weekday | time_shield::get_weekday_from_ts (long ts) |
Get weekday from timestamp. | |
Weekday | time_shield::day_of_week (long ts) |
Alias for get_weekday_from_ts. | |
Weekday | time_shield::get_weekday_from_ts_ms (long ts_ms) |
Get weekday from millisecond timestamp. | |
Weekday | time_shield::day_of_week_ms (long ts_ms) |
Alias for get_weekday_from_ts_ms. | |
long | time_shield::start_of_year (long ts) |
Get the start of the year for a timestamp. | |
long | time_shield::end_of_year (long ts) |
Get the end of the year for a timestamp. | |
long | time_shield::year_start (long ts) |
Alias for start_of_year. | |
long | time_shield::year_begin (long ts) |
Alias for start_of_year. | |
long | time_shield::start_of_year_ms (long ts_ms) |
Get the start of the year in milliseconds. | |
long | time_shield::year_start_ms (long ts_ms) |
Alias for start_of_year_ms. | |
long | time_shield::year_begin_ms (long ts_ms) |
Alias for start_of_year_ms. | |
long | time_shield::start_of_year_date (long year) |
Get the timestamp for the start of the specified year. | |
long | time_shield::year_start_date (long year) |
Alias for start_of_year_date. | |
long | time_shield::year_begin_date (long year) |
Alias for start_of_year_date. | |
long | time_shield::start_of_year_date_ms (long year) |
Get the timestamp in milliseconds for the start of the specified year. | |
long | time_shield::year_start_date_ms (long year) |
Alias for start_of_year_date_ms. | |
long | time_shield::year_begin_date_ms (long year) |
Alias for start_of_year_date_ms. | |
long | time_shield::end_of_year_ms (long ts_ms) |
Get the end of the year in milliseconds. | |
long | time_shield::year_end_ms (long ts_ms) |
Alias for end_of_year_ms. | |
int | time_shield::day_of_year (long ts) |
Get the day of the year. | |
Month | time_shield::month_of_year (long ts) |
Get the month of the year. | |
int | time_shield::day_of_month (long ts) |
Get the day of the month. | |
int | time_shield::num_days_in_month (long year, int month) |
Get the number of days in a month. | |
int | time_shield::days_in_month (long year, int month) |
Alias for num_days_in_month. | |
int | time_shield::num_days_in_month_ts (long ts) |
Get the number of days in the month of a timestamp. | |
int | time_shield::num_days_in_month (long ts) |
Alias for num_days_in_month_ts. | |
int | time_shield::days_in_month (long ts) |
Alias for num_days_in_month_ts. | |
int | time_shield::first_workday_day (long year, int month) |
int | time_shield::last_workday_day (long year, int month) |
int | time_shield::count_workdays_in_month (long year, int month) |
int | time_shield::workday_index_in_month (long year, int month, int day) |
bool | time_shield::is_first_workday_of_month (long year, int month, int day) |
bool | time_shield::is_within_first_workdays_of_month (long year, int month, int day, int count) |
bool | time_shield::is_last_workday_of_month (long year, int month, int day) |
bool | time_shield::is_within_last_workdays_of_month (long year, int month, int day, int count) |
bool | time_shield::is_first_workday_of_month (const long ts) |
bool | time_shield::is_within_first_workdays_of_month (const long ts, int count) |
bool | time_shield::is_last_workday_of_month (const long ts) |
bool | time_shield::is_within_last_workdays_of_month (const long ts, int count) |
bool | time_shield::is_first_workday_of_month_ms (const long ts_ms) |
bool | time_shield::is_within_first_workdays_of_month_ms (const long ts_ms, int count) |
bool | time_shield::is_last_workday_of_month_ms (const long ts_ms) |
bool | time_shield::is_within_last_workdays_of_month_ms (const long ts_ms, int count) |
int | time_shield::num_days_in_year (long year) |
Get number of days in a year. | |
int | time_shield::days_in_year (long year) |
Alias for num_days_in_year. | |
int | time_shield::num_days_in_year_ts (long ts) |
Get number of days in the year of the timestamp. | |
int | time_shield::days_in_year_ts (long ts) |
Alias for num_days_in_year_ts. | |
long | time_shield::start_of_month (long ts) |
Get the timestamp at the start of the month. | |
long | time_shield::month_begin (long ts) |
Alias for start_of_month. | |
long | time_shield::end_of_month (long ts) |
Get the timestamp at the end of the month. | |
long | time_shield::last_day_of_month (long ts) |
Alias for end_of_month. | |
long | time_shield::last_sunday_of_month (long ts) |
Get the timestamp of the last Sunday of the month. | |
long | time_shield::final_sunday_of_month (long ts) |
Alias for last_sunday_of_month. | |
int | time_shield::last_sunday_month_day (long year, int month) |
Get the day of the last Sunday for the given month and year. | |
int | time_shield::final_sunday_month_day (long year, int month) |
Alias for last_sunday_month_day. | |
long | time_shield::start_of_hour (long ts) |
Get the start of the hour for a timestamp. | |
long | time_shield::hour_begin (long ts) |
Alias for start_of_hour. | |
long | time_shield::start_of_hour_sec (long ts_ms) |
Get the start of the hour in seconds from milliseconds timestamp. | |
long | time_shield::hour_begin_sec (long ts_ms) |
Alias for start_of_hour_sec. | |
long | time_shield::start_of_hour_ms (long ts_ms) |
Get the start of the hour for a millisecond timestamp. | |
long | time_shield::hour_begin_ms (long ts_ms) |
Alias for start_of_hour_ms. | |
long | time_shield::end_of_hour (long ts) |
Get the end of the hour for a timestamp. | |
long | time_shield::finish_of_hour (long ts) |
Alias for end_of_hour. | |
long | time_shield::end_of_hour_sec (long ts_ms) |
Get the end of the hour in seconds from milliseconds timestamp. | |
long | time_shield::finish_of_hour_sec (long ts_ms) |
Alias for end_of_hour_sec. | |
long | time_shield::end_of_hour_ms (long ts_ms) |
Get the end of the hour for a millisecond timestamp. | |
long | time_shield::finish_of_hour_ms (long ts_ms) |
Alias for end_of_hour_ms. | |
int | time_shield::hour_of_day (long ts) |
Get the hour of the day. | |
int | time_shield::hour_in_day (long ts) |
Alias for hour_of_day. | |
long | time_shield::start_of_week (long ts) |
Get the start of the week (Sunday). | |
long | time_shield::week_begin (long ts) |
Alias for start_of_week. | |
long | time_shield::end_of_week (long ts) |
Get the end of the week (Saturday end). | |
long | time_shield::finish_of_week (long ts) |
Alias for end_of_week. | |
long | time_shield::start_of_saturday (long ts) |
Get the start of Saturday for the week of the timestamp. | |
long | time_shield::saturday_begin (long ts) |
Alias for start_of_saturday. | |
long | time_shield::start_of_min (long ts) |
Get the start of the minute for a timestamp. | |
long | time_shield::min_begin (long ts) |
Alias for start_of_min. | |
long | time_shield::end_of_min (long ts) |
Get the end of the minute for a timestamp. | |
long | time_shield::finish_of_min (long ts) |
Alias for end_of_min. | |
int | time_shield::min_of_day (long ts) |
Get the minute of the day. | |
int | time_shield::min_of_hour (long ts) |
Get the minute of the hour. | |
int | time_shield::min_in_hour (long ts) |
Alias for min_of_hour. | |
long | time_shield::start_of_period (int p, long ts) |
Get the start of a period. | |
long | time_shield::end_of_period (int p, long ts) |
Get the end of a period. | |
long | time_shield::date_to_unix_day (const long year, const int month, const int day) |
Convert calendar date to UNIX day. | |
long | time_shield::get_unix_day (long ts) |
Get UNIX day from timestamp. | |
long | time_shield::unix_day (long ts) |
Alias for get_unix_day. | |
long | time_shield::get_unixday (long ts) |
Alias for get_unix_day. | |
long | time_shield::unixday (long ts) |
Alias for get_unix_day. | |
long | time_shield::uday (long ts) |
Alias for get_unix_day. | |
int | time_shield::get_days_difference (long start, long stop) |
Get number of days between two timestamps. | |
int | time_shield::get_days (long start, long stop) |
Alias for get_days_difference. | |
int | time_shield::days (long start, long stop) |
Alias for get_days_difference. | |
long | time_shield::get_unix_day_ms (long ts_ms) |
Get UNIX day from milliseconds timestamp. | |
long | time_shield::unix_day_ms (long ts_ms) |
Alias for get_unix_day_ms. | |
long | time_shield::get_unixday_ms (long ts_ms) |
Alias for get_unix_day_ms. | |
long | time_shield::unixday_ms (long ts_ms) |
Alias for get_unix_day_ms. | |
long | time_shield::uday_ms (long ts_ms) |
Alias for get_unix_day_ms. | |
long | time_shield::unix_day_to_timestamp (long uday) |
Convert UNIX day to timestamp in seconds. | |
long | time_shield::unix_day_to_ts (long uday) |
Alias for unix_day_to_timestamp. | |
long | time_shield::unixday_to_ts (long uday) |
Alias for unix_day_to_timestamp. | |
long | time_shield::uday_to_ts (long uday) |
Alias for unix_day_to_timestamp. | |
long | time_shield::start_of_day_from_unix_day (long uday) |
Alias for unix_day_to_timestamp. | |
long | time_shield::unix_day_to_timestamp_ms (long uday) |
Convert UNIX day to timestamp in milliseconds. | |
long | time_shield::unix_day_to_ts_ms (long uday) |
Alias for unix_day_to_timestamp_ms. | |
long | time_shield::unixday_to_ts_ms (long uday) |
Alias for unix_day_to_timestamp_ms. | |
long | time_shield::uday_to_ts_ms (long uday) |
Alias for unix_day_to_timestamp_ms. | |
long | time_shield::start_of_day_from_unix_day_ms (long uday) |
Alias for unix_day_to_timestamp_ms. | |
long | time_shield::end_of_day_from_unix_day (long uday) |
Get end of day timestamp from UNIX day. | |
long | time_shield::end_of_day_from_unix_day_ms (long uday) |
Get end of day timestamp in ms from UNIX day. | |
long | time_shield::eod_from_unix_day (long uday) |
Alias for end_of_day_from_unix_day. | |
long | time_shield::eod_from_unix_day_ms (long uday) |
Alias for end_of_day_from_unix_day_ms. | |
long | time_shield::start_of_next_day_from_unix_day (long uday) |
Get start of next day timestamp from UNIX day. | |
long | time_shield::start_of_next_day_from_unix_day_ms (long uday) |
Get start of next day timestamp in ms from UNIX day. | |
long | time_shield::next_day_unix_day (long uday) |
Alias for start_of_next_day_from_unix_day. | |
long | time_shield::next_day_unixday (long uday) |
Alias for start_of_next_day_from_unix_day. | |
long | time_shield::next_day_unix_day_ms (long uday) |
Alias for start_of_next_day_from_unix_day_ms. | |
long | time_shield::next_day_unixday_ms (long uday) |
Alias for start_of_next_day_from_unix_day_ms. | |
long | time_shield::next_day_from_unix_day (long uday) |
Alias for start_of_next_day_from_unix_day. | |
long | time_shield::get_unix_min (long ts) |
Get UNIX minute from timestamp. | |
long | time_shield::unix_min (long ts) |
Alias for get_unix_min. | |
long | time_shield::to_unix_min (long ts) |
Alias for get_unix_min. | |
long | time_shield::umin (long ts) |
Alias for get_unix_min. | |
int | time_shield::sec_of_day (long ts) |
Get second of day from timestamp. | |
int | time_shield::sec_of_day_ms (long ts_ms) |
Get second of day from milliseconds timestamp. | |
int | time_shield::sec_of_day (int hour, int min, int sec) |
Get second of day from hours, minutes and seconds. | |
TimeZoneStruct | time_shield::to_time_zone (int offset) |
Convert an integer offset to a TimeZoneStruct. | |
TimeZoneStruct | time_shield::to_tz_struct (int offset) |
Alias for to_time_zone. | |
datetime | time_shield::cet_to_gmt (const datetime cet) |
Convert Central European Time to Greenwich Mean Time. | |
datetime | time_shield::eet_to_gmt (const datetime eet) |
Convert Eastern European Time to Greenwich Mean Time. | |
template<class T = year_t> | |
constexpr T | time_shield::unix_year (ts_t ts) noexcept |
Alias for get_unix_year function. | |
template<class T = year_t> | |
constexpr T | time_shield::to_unix_year (ts_t ts) noexcept |
Alias for get_unix_year function. | |
template<class T = uday_t> | |
constexpr T | time_shield::get_unixday (ts_t ts=time_shield::ts()) noexcept |
Alias for get_unix_day function. | |
template<class T = uday_t> | |
constexpr T | time_shield::unix_day (ts_t ts=time_shield::ts()) noexcept |
Alias for get_unix_day function. | |
template<class T = uday_t> | |
constexpr T | time_shield::unixday (ts_t ts=time_shield::ts()) noexcept |
Alias for get_unix_day function. | |
template<class T = uday_t> | |
constexpr T | time_shield::uday (ts_t ts=time_shield::ts()) noexcept |
Alias for get_unix_day function. | |
template<class T = uday_t> | |
constexpr T | time_shield::get_unixday_ms (ts_ms_t t_ms=time_shield::ts_ms()) noexcept |
Alias for get_unix_day_ms function. | |
template<class T = uday_t> | |
constexpr T | time_shield::unix_day_ms (ts_ms_t t_ms=time_shield::ts_ms()) noexcept |
Alias for get_unix_day_ms function. | |
template<class T = uday_t> | |
constexpr T | time_shield::unixday_ms (ts_ms_t t_ms=time_shield::ts_ms()) noexcept |
Alias for get_unix_day_ms function. | |
template<class T = uday_t> | |
constexpr T | time_shield::uday_ms (ts_ms_t t_ms=time_shield::ts_ms()) noexcept |
Alias for get_unix_day_ms function. | |
template<class T = ts_t> | |
constexpr T | time_shield::unix_day_to_ts (uday_t unix_day) noexcept |
Alias for unix_day_to_timestamp function. | |
template<class T = ts_t> | |
constexpr T | time_shield::unixday_to_ts (uday_t unix_day) noexcept |
Alias for unix_day_to_timestamp function. | |
template<class T = ts_t> | |
constexpr T | time_shield::uday_to_ts (uday_t unix_day) noexcept |
Alias for unix_day_to_timestamp function. | |
template<class T = ts_t> | |
constexpr T | time_shield::start_of_day_from_unix_day (uday_t unix_day) noexcept |
Alias for unix_day_to_timestamp function. | |
template<class T = ts_t> | |
constexpr T | time_shield::unix_day_to_ts_ms (uday_t unix_day) noexcept |
Alias for unix_day_to_timestamp_ms function. | |
template<class T = ts_t> | |
constexpr T | time_shield::unixday_to_ts_ms (uday_t unix_day) noexcept |
Alias for unix_day_to_timestamp_ms function. | |
template<class T = ts_t> | |
constexpr T | time_shield::uday_to_ts_ms (uday_t unix_day) noexcept |
Alias for unix_day_to_timestamp_ms function. | |
template<class T = ts_t> | |
constexpr T | time_shield::start_of_day_from_unix_day_ms (uday_t unix_day) noexcept |
Alias for unix_day_to_timestamp_ms function. | |
template<class T = ts_t> | |
constexpr T | time_shield::next_day_from_unix_day (uday_t unix_day) noexcept |
Alias for start_of_next_day_from_unix_day function. | |
template<class T = ts_t> | |
constexpr T | time_shield::next_day_unix_day (uday_t unix_day) noexcept |
Alias for start_of_next_day_from_unix_day function. | |
template<class T = ts_t> | |
constexpr T | time_shield::next_day_unixday (uday_t unix_day) noexcept |
Alias for start_of_next_day_from_unix_day function. | |
template<class T = ts_ms_t> | |
constexpr T | time_shield::next_day_from_unix_day_ms (uday_t unix_day) noexcept |
Alias for start_of_next_day_from_unix_day_ms function. | |
template<class T = ts_ms_t> | |
constexpr T | time_shield::next_day_unix_day_ms (uday_t unix_day) noexcept |
Alias for start_of_next_day_from_unix_day_ms function. | |
template<class T = ts_ms_t> | |
constexpr T | time_shield::next_day_unixday_ms (uday_t unix_day) noexcept |
Alias for start_of_next_day_from_unix_day_ms function. | |
template<class T = int64_t> | |
constexpr T | time_shield::unix_min (ts_t ts=time_shield::ts()) |
Alias for get_unix_min function. | |
template<class T = int64_t> | |
constexpr T | time_shield::to_unix_min (ts_t ts=time_shield::ts()) |
Alias for get_unix_min function. | |
template<class T = int64_t> | |
constexpr T | time_shield::umin (ts_t ts=time_shield::ts()) |
Alias for get_unix_min function. | |
template<class T = int> | |
TIME_SHIELD_CONSTEXPR T | time_shield::h24_to_h12 (T hour) noexcept |
Alias for hour24_to_12 function. | |
template<class T1, class T2 = ts_t> | |
T1 | time_shield::to_dt (T2 ts) |
Alias for to_date_time function. | |
template<class T1, class T2 = ts_t> | |
T1 | time_shield::to_dt_struct (T2 ts) |
Alias for to_date_time function. | |
template<class T> | |
T | time_shield::to_dt_ms (ts_ms_t ts) |
Alias for to_date_time_ms function. | |
template<class T> | |
T | time_shield::to_dt_struct_ms (ts_ms_t ts) |
Alias for to_date_time_ms function. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::ts (year_t year, int month, int day) |
Alias for to_timestamp. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::ts (year_t year, int month, int day, int hour) |
Alias for to_timestamp. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::ts (year_t year, int month, int day, int hour, int min) |
Alias for to_timestamp. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::ts (year_t year, int month, int day, int hour, int min, int sec) |
Alias for to_timestamp. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::get_ts (year_t year, int month, int day) |
Alias for to_timestamp. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::get_ts (year_t year, int month, int day, int hour) |
Alias for to_timestamp. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::get_ts (year_t year, int month, int day, int hour, int min) |
Alias for to_timestamp. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::get_ts (year_t year, int month, int day, int hour, int min, int sec) |
Alias for to_timestamp. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::get_timestamp (year_t year, int month, int day) |
Alias for to_timestamp. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::get_timestamp (year_t year, int month, int day, int hour) |
Alias for to_timestamp. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::get_timestamp (year_t year, int month, int day, int hour, int min) |
Alias for to_timestamp. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::get_timestamp (year_t year, int month, int day, int hour, int min, int sec) |
Alias for to_timestamp. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::timestamp (year_t year, int month, int day) |
Alias for to_timestamp. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::timestamp (year_t year, int month, int day, int hour) |
Alias for to_timestamp. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::timestamp (year_t year, int month, int day, int hour, int min) |
Alias for to_timestamp. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::timestamp (year_t year, int month, int day, int hour, int min, int sec) |
Alias for to_timestamp. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::to_ts (year_t year, int month, int day) |
Alias for to_timestamp. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::to_ts (year_t year, int month, int day, int hour) |
Alias for to_timestamp. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::to_ts (year_t year, int month, int day, int hour, int min) |
Alias for to_timestamp. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::to_ts (year_t year, int month, int day, int hour, int min, int sec) |
Alias for to_timestamp. | |
template<class T> | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::to_timestamp (const T &date_time) |
Alias for dt_to_timestamp function. | |
template<class T> | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::to_ts (const T &date_time) |
Alias for dt_to_timestamp function. | |
template<class T> | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::ts (const T &date_time) |
Alias for dt_to_timestamp function. | |
template<class T> | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::timestamp (const T &date_time) |
Alias for dt_to_timestamp function. | |
constexpr ts_t | time_shield::ts (const std::tm *timeinfo) |
Alias for tm_to_timestamp. | |
constexpr ts_t | time_shield::get_ts (const std::tm *timeinfo) |
Alias for tm_to_timestamp. | |
constexpr ts_t | time_shield::timestamp (const std::tm *timeinfo) |
Alias for tm_to_timestamp. | |
constexpr ts_t | time_shield::get_timestamp (const std::tm *timeinfo) |
Alias for tm_to_timestamp. | |
constexpr ts_t | time_shield::to_ts (const std::tm *timeinfo) |
Alias for tm_to_timestamp. | |
constexpr ts_t | time_shield::ts_from_tm (const std::tm *timeinfo) |
Alias for tm_to_timestamp. | |
constexpr ts_t | time_shield::to_timestamp (const std::tm *timeinfo) |
Alias for tm_to_timestamp. | |
constexpr ts_ms_t | time_shield::ts_ms (year_t year, int month, int day) |
Alias for to_timestamp_ms. | |
constexpr ts_ms_t | time_shield::ts_ms (year_t year, int month, int day, int hour) |
Alias for to_timestamp_ms. | |
constexpr ts_ms_t | time_shield::ts_ms (year_t year, int month, int day, int hour, int min) |
Alias for to_timestamp_ms. | |
constexpr ts_ms_t | time_shield::ts_ms (year_t year, int month, int day, int hour, int min, int sec) |
Alias for to_timestamp_ms. | |
constexpr ts_ms_t | time_shield::ts_ms (year_t year, int month, int day, int hour, int min, int sec, int ms) |
Alias for to_timestamp_ms. | |
constexpr ts_ms_t | time_shield::get_ts_ms (year_t year, int month, int day) |
Alias for to_timestamp_ms. | |
constexpr ts_ms_t | time_shield::get_ts_ms (year_t year, int month, int day, int hour) |
Alias for to_timestamp_ms. | |
constexpr ts_ms_t | time_shield::get_ts_ms (year_t year, int month, int day, int hour, int min) |
Alias for to_timestamp_ms. | |
constexpr ts_ms_t | time_shield::get_ts_ms (year_t year, int month, int day, int hour, int min, int sec) |
Alias for to_timestamp_ms. | |
constexpr ts_ms_t | time_shield::get_ts_ms (year_t year, int month, int day, int hour, int min, int sec, int ms) |
Alias for to_timestamp_ms. | |
constexpr ts_ms_t | time_shield::get_timestamp_ms (year_t year, int month, int day) |
Alias for to_timestamp_ms. | |
constexpr ts_ms_t | time_shield::get_timestamp_ms (year_t year, int month, int day, int hour) |
Alias for to_timestamp_ms. | |
constexpr ts_ms_t | time_shield::get_timestamp_ms (year_t year, int month, int day, int hour, int min) |
Alias for to_timestamp_ms. | |
constexpr ts_ms_t | time_shield::get_timestamp_ms (year_t year, int month, int day, int hour, int min, int sec) |
Alias for to_timestamp_ms. | |
constexpr ts_ms_t | time_shield::get_timestamp_ms (year_t year, int month, int day, int hour, int min, int sec, int ms) |
Alias for to_timestamp_ms. | |
constexpr ts_ms_t | time_shield::timestamp_ms (year_t year, int month, int day) |
Alias for to_timestamp_ms. | |
constexpr ts_ms_t | time_shield::timestamp_ms (year_t year, int month, int day, int hour) |
Alias for to_timestamp_ms. | |
constexpr ts_ms_t | time_shield::timestamp_ms (year_t year, int month, int day, int hour, int min) |
Alias for to_timestamp_ms. | |
constexpr ts_ms_t | time_shield::timestamp_ms (year_t year, int month, int day, int hour, int min, int sec) |
Alias for to_timestamp_ms. | |
constexpr ts_ms_t | time_shield::timestamp_ms (year_t year, int month, int day, int hour, int min, int sec, int ms) |
Alias for to_timestamp_ms. | |
constexpr ts_ms_t | time_shield::to_ts_ms (year_t year, int month, int day) |
Alias for to_timestamp_ms. | |
constexpr ts_ms_t | time_shield::to_ts_ms (year_t year, int month, int day, int hour) |
Alias for to_timestamp_ms. | |
constexpr ts_ms_t | time_shield::to_ts_ms (year_t year, int month, int day, int hour, int min) |
Alias for to_timestamp_ms. | |
constexpr ts_ms_t | time_shield::to_ts_ms (year_t year, int month, int day, int hour, int min, int sec) |
Alias for to_timestamp_ms. | |
constexpr ts_ms_t | time_shield::to_ts_ms (year_t year, int month, int day, int hour, int min, int sec, int ms) |
Alias for to_timestamp_ms. | |
template<class T> | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::to_timestamp_ms (const T &date_time) |
Alias for dt_to_timestamp_ms function. | |
template<class T> | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::to_ts_ms (const T &date_time) |
Alias for dt_to_timestamp_ms function. | |
template<class T> | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::ts_ms (const T &date_time) |
Alias for dt_to_timestamp_ms function. | |
template<class T> | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::timestamp_ms (const T &date_time) |
Alias for dt_to_timestamp_ms function. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::to_timestamp_ms (const std::tm *timeinfo) |
Alias for tm_to_timestamp_ms function. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::to_ts_ms (const std::tm *timeinfo) |
Alias for tm_to_timestamp_ms function. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::ts_ms (const std::tm *timeinfo) |
Alias for tm_to_timestamp_ms function. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::timestamp_ms (const std::tm *timeinfo) |
Alias for tm_to_timestamp_ms function. | |
template<class T1 = year_t, class T2 = int, class T3 = int> | |
constexpr fts_t | time_shield::to_fts (T1 year, T2 month, T2 day, T2 hour=0, T2 min=0, T2 sec=0, T3 ms=0) |
Alias for to_ftimestamp. | |
template<class T1 = year_t, class T2 = int, class T3 = int> | |
constexpr fts_t | time_shield::fts (T1 year, T2 month, T2 day, T2 hour=0, T2 min=0, T2 sec=0, T3 ms=0) |
Alias for to_ftimestamp. | |
template<class T1 = year_t, class T2 = int, class T3 = int> | |
constexpr fts_t | time_shield::ftimestamp (T1 year, T2 month, T2 day, T2 hour=0, T2 min=0, T2 sec=0, T3 ms=0) |
Alias for to_ftimestamp. | |
template<class T> | |
constexpr fts_t | time_shield::to_ftimestamp (const T &date_time) |
Alias for dt_to_ftimestamp. | |
template<class T> | |
constexpr fts_t | time_shield::to_fts (const T &date_time) |
Alias for dt_to_ftimestamp. | |
template<class T> | |
constexpr fts_t | time_shield::fts (const T &date_time) |
Alias for dt_to_ftimestamp. | |
template<class T> | |
constexpr fts_t | time_shield::ftimestamp (const T &date_time) |
Alias for dt_to_ftimestamp. | |
constexpr fts_t | time_shield::to_ftimestamp (const std::tm *timeinfo) |
Alias for tm_to_ftimestamp. | |
constexpr fts_t | time_shield::to_fts (const std::tm *timeinfo) |
Alias for tm_to_ftimestamp. | |
constexpr fts_t | time_shield::fts (const std::tm *timeinfo) |
Alias for tm_to_ftimestamp. | |
constexpr fts_t | time_shield::ftimestamp (const std::tm *timeinfo) |
Alias for tm_to_ftimestamp. | |
template<class T = int> | |
constexpr T | time_shield::get_days (ts_t start, ts_t stop) noexcept |
Alias for get_days_difference function. | |
template<class T = int> | |
constexpr T | time_shield::days (ts_t start, ts_t stop) noexcept |
Alias for get_days_difference function. | |
template<class T = year_t> | |
TIME_SHIELD_CONSTEXPR T | time_shield::year (ts_t ts=time_shield::ts()) |
Alias for get_year function. | |
template<class T = year_t> | |
TIME_SHIELD_CONSTEXPR T | time_shield::to_year (ts_t ts=time_shield::ts()) |
Alias for get_year function. | |
template<class T = year_t> | |
TIME_SHIELD_CONSTEXPR T | time_shield::year_ms (ts_ms_t ts_ms=time_shield::ts_ms()) |
Alias for get_year_ms function. | |
template<class T = year_t> | |
TIME_SHIELD_CONSTEXPR T | time_shield::to_year_ms (ts_ms_t ts_ms=time_shield::ts_ms()) |
Alias for get_year_ms function. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::year_start (ts_t ts=time_shield::ts()) |
Alias for start_of_year function. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::year_begin (ts_t ts=time_shield::ts()) |
Alias for start_of_year function. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::year_start_ms (ts_t ts_ms=time_shield::ts_ms()) |
Alias for start_of_year_ms function. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::year_begin_ms (ts_t ts_ms=time_shield::ts_ms()) |
Alias for start_of_year_ms function. | |
template<class T = year_t> | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::year_start_date (T year) |
Alias for start_of_year_date function. | |
template<class T = year_t> | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::year_begin_date (T year) |
Alias for start_of_year_date function. | |
template<class T = year_t> | |
TIME_SHIELD_CONSTEXPR ts_ms_t | time_shield::year_start_date_ms (T year) |
Alias for start_of_year_date_ms function. | |
template<class T = year_t> | |
TIME_SHIELD_CONSTEXPR ts_ms_t | time_shield::year_begin_date_ms (T year) |
Alias for start_of_year_date_ms function. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::year_end (ts_t ts=time_shield::ts()) |
Alias for end_of_year function. | |
TIME_SHIELD_CONSTEXPR ts_ms_t | time_shield::year_end_ms (ts_ms_t ts_ms=time_shield::ts_ms()) |
Alias for end_of_year_ms function. | |
template<class T1 = int, class T2 = year_t, class T3 = int> | |
constexpr T1 | time_shield::days_in_month (T2 year, T3 month) noexcept |
Alias for num_days_in_month function. | |
template<class T1 = int> | |
constexpr T1 | time_shield::num_days_in_month (ts_t ts=time_shield::ts()) noexcept |
Alias for num_days_in_month_ts function. | |
template<class T1 = int> | |
constexpr T1 | time_shield::days_in_month (ts_t ts=time_shield::ts()) noexcept |
Alias for num_days_in_month_ts function. | |
template<class T1 = int, class T2 = year_t> | |
constexpr T1 | time_shield::days_in_year (T2 year) noexcept |
Alias for num_days_in_year function. | |
template<class T = int> | |
constexpr T | time_shield::days_in_year_ts (ts_t ts=time_shield::ts()) |
Alias for num_days_in_year_ts function. | |
constexpr ts_t | time_shield::day_start (ts_t ts=time_shield::ts()) noexcept |
Alias for start_of_day function. | |
template<class T = int> | |
constexpr ts_t | time_shield::previous_day_start (ts_t ts=time_shield::ts(), T days=1) noexcept |
Alias for start_of_prev_day function. | |
constexpr ts_t | time_shield::day_start_sec (ts_ms_t ts_ms=time_shield::ts_ms()) noexcept |
Alias for start_of_day_sec function. | |
constexpr ts_t | time_shield::start_day_sec (ts_ms_t ts_ms=time_shield::ts_ms()) noexcept |
Alias for start_of_day_sec function. | |
constexpr ts_ms_t | time_shield::day_start_ms (ts_ms_t ts_ms=time_shield::ts_ms()) noexcept |
Alias for start_of_day_ms function. | |
template<class T = int> | |
constexpr ts_t | time_shield::next_day_start (ts_t ts, T days=1) noexcept |
Alias for start_of_next_day function. | |
template<class T = int> | |
constexpr ts_ms_t | time_shield::next_day_start_ms (ts_ms_t ts_ms, T days=1) noexcept |
Alias for start_of_next_day_ms function. | |
constexpr ts_t | time_shield::day_end (ts_t ts=time_shield::ts()) noexcept |
Alias for end_of_day function. | |
constexpr ts_t | time_shield::day_end_sec (ts_ms_t ts_ms=time_shield::ts_ms()) noexcept |
Alias for end_of_day_sec function. | |
constexpr ts_ms_t | time_shield::day_end_ms (ts_ms_t ts_ms=time_shield::ts_ms()) noexcept |
Alias for end_of_day_ms function. | |
template<class T1 = Weekday> | |
constexpr T1 | time_shield::day_of_week (year_t year, int month, int day) |
Alias for day_of_week_date. | |
template<class T1 = Weekday> | |
constexpr T1 | time_shield::day_of_week (year_t year, Month month, int day) |
Alias for day_of_week_date. | |
template<class T1 = Weekday> | |
constexpr T1 | time_shield::get_weekday (year_t year, int month, int day) |
Alias for day_of_week_date. | |
template<class T1 = Weekday> | |
constexpr T1 | time_shield::get_weekday (year_t year, Month month, int day) |
Alias for day_of_week_date. | |
template<class T1 = Weekday> | |
constexpr T1 | time_shield::weekday (year_t year, int month, int day) |
Alias for day_of_week_date. | |
template<class T1 = Weekday> | |
constexpr T1 | time_shield::weekday (year_t year, Month month, int day) |
Alias for day_of_week_date. | |
template<class T1 = Weekday> | |
constexpr T1 | time_shield::dow (year_t year, int month, int day) |
Alias for day_of_week_date. | |
template<class T1 = Weekday> | |
constexpr T1 | time_shield::dow (year_t year, Month month, int day) |
Alias for day_of_week_date. | |
template<class T1 = Weekday, class T2, typename std::enable_if< std::is_class< T2 >::value, int >::type = 0> | |
constexpr T1 | time_shield::get_dow (const T2 &date) |
Alias for get_weekday_from_date. | |
template<class T1 = Weekday, class T2, typename std::enable_if< std::is_class< T2 >::value, int >::type = 0> | |
constexpr T1 | time_shield::dow_from_date (const T2 &date) |
Alias for get_weekday_from_date. | |
template<class T1 = Weekday, class T2, typename std::enable_if< std::is_class< T2 >::value, int >::type = 0> | |
constexpr T1 | time_shield::weekday_of (const T2 &date) |
Alias for get_weekday_from_date. | |
template<class T1 = Weekday, class T2, typename std::enable_if< std::is_class< T2 >::value, int >::type = 0> | |
constexpr T1 | time_shield::day_of_week_dt (const T2 &date) |
Alias for get_weekday_from_date. | |
template<class T1 = Weekday, class T2, typename std::enable_if< std::is_class< T2 >::value, int >::type = 0> | |
constexpr T1 | time_shield::day_of_week (const T2 &date) |
Alias for get_weekday_from_date. | |
template<class T1 = Weekday, class T2, typename std::enable_if< std::is_class< T2 >::value, int >::type = 0> | |
constexpr T1 | time_shield::dow (const T2 &date) |
Alias for get_weekday_from_date. | |
template<class T = Weekday, class U, typename std::enable_if< std::is_integral< U >::value, int >::type = 0> | |
constexpr T | time_shield::day_of_week (U ts) noexcept |
Alias for get_weekday_from_ts. | |
template<class T = Weekday, class U, typename std::enable_if< std::is_integral< U >::value, int >::type = 0> | |
constexpr T | time_shield::dow_ts (U ts) noexcept |
Alias for get_weekday_from_ts. | |
template<class T = Weekday, class U, typename std::enable_if< std::is_integral< U >::value, int >::type = 0> | |
constexpr T | time_shield::get_dow_from_ts (U ts) noexcept |
Alias for get_weekday_from_ts. | |
template<class T = Weekday, class U, typename std::enable_if< std::is_integral< U >::value, int >::type = 0> | |
constexpr T | time_shield::weekday_of_ts (U ts) noexcept |
Alias for get_weekday_from_ts. | |
template<class T = Weekday> | |
constexpr T | time_shield::day_of_week_ms (ts_ms_t ts_ms) |
Alias for get_weekday_from_ts_ms function. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::month_begin (ts_t ts=time_shield::ts()) |
Alias for start_of_month function. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::last_day_of_month (ts_t ts=time_shield::ts()) |
Alias for end_of_month function. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::final_sunday_of_month (ts_t ts=time_shield::ts()) |
Alias for last_sunday_of_month function. | |
template<class T1 = int, class T2 = year_t, class T3 = int> | |
TIME_SHIELD_CONSTEXPR T1 | time_shield::final_sunday_month_day (T2 year, T3 month) |
Alias for last_sunday_month_day function. | |
constexpr ts_t | time_shield::hour_begin (ts_t ts=time_shield::ts()) noexcept |
Alias for start_of_hour function. | |
constexpr ts_t | time_shield::hour_begin_sec (ts_ms_t ts_ms=time_shield::ts_ms()) noexcept |
Alias for start_of_hour_sec function. | |
constexpr ts_ms_t | time_shield::hour_begin_ms (ts_ms_t ts_ms=time_shield::ts_ms()) noexcept |
Alias for start_of_hour_ms function. | |
constexpr ts_t | time_shield::finish_of_hour (ts_t ts=time_shield::ts()) noexcept |
Alias for end_of_hour function. | |
constexpr ts_t | time_shield::finish_of_hour_sec (ts_ms_t ts_ms=time_shield::ts_ms()) noexcept |
Alias for end_of_hour_sec function. | |
constexpr ts_ms_t | time_shield::finish_of_hour_ms (ts_ms_t ts_ms=time_shield::ts_ms()) noexcept |
Alias for end_of_hour_ms function. | |
template<class T = int> | |
constexpr T | time_shield::hour_in_day (ts_t ts=time_shield::ts()) noexcept |
Alias for hour_of_day function. | |
constexpr ts_t | time_shield::week_begin (ts_t ts=time_shield::ts()) |
Alias for start_of_week function. | |
constexpr ts_t | time_shield::finish_of_week (ts_t ts=time_shield::ts()) |
Alias for end_of_week function. | |
constexpr ts_t | time_shield::saturday_begin (ts_t ts=time_shield::ts()) |
Alias for start_of_saturday function. | |
constexpr ts_t | time_shield::min_begin (ts_t ts=time_shield::ts()) noexcept |
Alias for start_of_min function. | |
constexpr ts_t | time_shield::finish_of_min (ts_t ts=time_shield::ts()) noexcept |
Alias for end_of_min function. | |
TIME_SHIELD_CONSTEXPR bool | time_shield::workday (ts_t ts) noexcept |
Alias for is_workday(ts_t). | |
TIME_SHIELD_CONSTEXPR bool | time_shield::workday_ms (ts_ms_t ts_ms) noexcept |
Alias for is_workday(ts_ms_t). | |
TIME_SHIELD_CONSTEXPR bool | time_shield::workday (year_t year, int month, int day) noexcept |
Alias for is_workday(year_t, int, int). | |
template<class T = int> | |
constexpr T | time_shield::ns_of_sec (fts_t ts) noexcept |
Get the nanosecond part of the second from a floating-point timestamp. | |
template<class T = int> | |
constexpr T | time_shield::us_of_sec (fts_t ts) noexcept |
Get the microsecond part of the second from a floating-point timestamp. | |
template<class T = int> | |
constexpr T | time_shield::ms_of_sec (fts_t ts) noexcept |
Get the millisecond part of the second from a floating-point timestamp. | |
template<class T = int> | |
constexpr T | time_shield::ms_of_ts (ts_ms_t ts) noexcept |
Get the millisecond part of the timestamp. | |
template<class T> | |
constexpr ts_ms_t | time_shield::sec_to_ms_impl (T t, std::true_type tag) noexcept |
Helper function for converting seconds to milliseconds (floating-point version). | |
template<class T> | |
constexpr ts_ms_t | time_shield::sec_to_ms_impl (T t, std::false_type tag) noexcept |
Helper function for converting seconds to milliseconds (integral version). | |
template<class T1 = ts_ms_t, class T2> | |
constexpr T1 | time_shield::sec_to_ms (T2 ts) noexcept |
Converts a timestamp from seconds to milliseconds. | |
ts_ms_t | time_shield::fsec_to_ms (fts_t ts) noexcept |
Converts a floating-point timestamp from seconds to milliseconds. | |
template<class T1 = ts_t, class T2 = ts_ms_t> | |
constexpr T1 | time_shield::ms_to_sec (T2 ts_ms) noexcept |
Converts a timestamp from milliseconds to seconds. | |
template<class T = ts_ms_t> | |
constexpr fts_t | time_shield::ms_to_fsec (T ts_ms) noexcept |
Converts a timestamp from milliseconds to floating-point seconds. | |
template<class T> | |
constexpr ts_ms_t | time_shield::min_to_ms_impl (T t, std::true_type tag) noexcept |
Helper function for converting minutes to milliseconds (floating-point version). | |
template<class T> | |
constexpr ts_ms_t | time_shield::min_to_ms_impl (T t, std::false_type tag) noexcept |
Helper function for converting minutes to milliseconds (integral version). | |
template<class T1 = ts_ms_t, class T2> | |
constexpr T1 | time_shield::min_to_ms (T2 ts) noexcept |
Converts a timestamp from minutes to milliseconds. | |
template<class T1 = int, class T2 = ts_ms_t> | |
constexpr T1 | time_shield::ms_to_min (T2 ts) noexcept |
Converts a timestamp from milliseconds to minutes. | |
template<class T> | |
constexpr ts_t | time_shield::min_to_sec_impl (T t, std::true_type tag) noexcept |
Helper function for converting minutes to seconds (floating-point version). | |
template<class T> | |
constexpr ts_t | time_shield::min_to_sec_impl (T t, std::false_type tag) noexcept |
Helper function for converting minutes to seconds (integral version). | |
template<class T1 = ts_t, class T2> | |
constexpr T1 | time_shield::min_to_sec (T2 ts) noexcept |
Converts a timestamp from minutes to seconds. | |
template<class T1 = int, class T2 = ts_t> | |
constexpr T1 | time_shield::sec_to_min (T2 ts) noexcept |
Converts a timestamp from seconds to minutes. | |
template<class T = int> | |
constexpr fts_t | time_shield::min_to_fsec (T min) noexcept |
Converts a timestamp from minutes to floating-point seconds. | |
template<class T = ts_t> | |
constexpr double | time_shield::sec_to_fmin (T ts) noexcept |
Converts a timestamp from seconds to floating-point minutes. | |
template<class T> | |
constexpr ts_ms_t | time_shield::hour_to_ms_impl (T t, std::true_type tag) noexcept |
Helper function for converting hours to milliseconds (floating-point version). | |
template<class T> | |
constexpr ts_ms_t | time_shield::hour_to_ms_impl (T t, std::false_type tag) noexcept |
Helper function for converting hours to milliseconds (integral version). | |
template<class T1 = ts_ms_t, class T2> | |
constexpr T1 | time_shield::hour_to_ms (T2 ts) noexcept |
Converts a timestamp from hours to milliseconds. | |
template<class T1 = int, class T2 = ts_ms_t> | |
constexpr T1 | time_shield::ms_to_hour (T2 ts) noexcept |
Converts a timestamp from milliseconds to hours. | |
template<class T> | |
constexpr ts_t | time_shield::hour_to_sec_impl (T t, std::true_type tag) noexcept |
Helper function for converting hours to seconds (floating-point version). | |
template<class T> | |
constexpr ts_t | time_shield::hour_to_sec_impl (T t, std::false_type tag) noexcept |
Helper function for converting hours to seconds (integral version). | |
template<class T1 = ts_t, class T2> | |
constexpr T1 | time_shield::hour_to_sec (T2 ts) noexcept |
Converts a timestamp from hours to seconds. | |
template<class T1 = int, class T2 = ts_t> | |
constexpr T1 | time_shield::sec_to_hour (T2 ts) noexcept |
Converts a timestamp from seconds to hours. | |
template<class T = int> | |
constexpr fts_t | time_shield::hour_to_fsec (T hr) noexcept |
Converts a timestamp from hours to floating-point seconds. | |
template<class T = ts_t> | |
constexpr double | time_shield::sec_to_fhour (T ts) noexcept |
Converts a timestamp from seconds to floating-point hours. | |
template<class T = year_t> | |
constexpr T | time_shield::get_unix_year (ts_t ts) noexcept |
Converts a UNIX timestamp to a year. | |
template<class T = int> | |
TIME_SHIELD_CONSTEXPR T | time_shield::hour24_to_12 (T hour) noexcept |
Converts a 24-hour format hour to a 12-hour format. | |
template<class T1 = DateTimeStruct, class T2 = ts_t> | |
T1 | time_shield::to_date_time (T2 ts) |
Converts a timestamp to a date-time structure. | |
template<class T> | |
T | time_shield::to_date_time_ms (ts_ms_t ts) |
Converts a timestamp in milliseconds to a date-time structure with milliseconds. | |
template<class T1 = year_t, class T2 = int> | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::to_timestamp (T1 year, T2 month, T2 day, T2 hour=0, T2 min=0, T2 sec=0) |
Converts a date and time to a timestamp. | |
template<class T> | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::dt_to_timestamp (const T &date_time) |
Converts a date-time structure to a timestamp. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::tm_to_timestamp (const std::tm *timeinfo) |
Converts a std::tm structure to a timestamp. | |
template<class T1 = year_t, class T2 = int> | |
TIME_SHIELD_CONSTEXPR ts_ms_t | time_shield::to_timestamp_ms (T1 year, T2 month, T2 day, T2 hour=0, T2 min=0, T2 sec=0, T2 ms=0) |
Converts a date and time to a timestamp in milliseconds. | |
template<class T> | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::dt_to_timestamp_ms (const T &date_time) |
Converts a date-time structure to a timestamp in milliseconds. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::tm_to_timestamp_ms (const std::tm *timeinfo) |
Converts a std::tm structure to a timestamp in milliseconds. | |
template<class T1 = year_t, class T2 = int, class T3 = int> | |
TIME_SHIELD_CONSTEXPR fts_t | time_shield::to_ftimestamp (T1 year, T2 month, T2 day, T2 hour=0, T2 min=0, T2 sec=0, T3 ms=0) |
Converts a date and time to a floating-point timestamp. | |
template<class T> | |
TIME_SHIELD_CONSTEXPR fts_t | time_shield::dt_to_ftimestamp (const T &date_time) |
Converts a date-time structure to a floating-point timestamp. | |
TIME_SHIELD_CONSTEXPR fts_t | time_shield::tm_to_ftimestamp (const std::tm *timeinfo) |
Converts a std::tm structure to a floating-point timestamp. | |
template<class Year, class Month, class Day> | |
TIME_SHIELD_CONSTEXPR uday_t | time_shield::date_to_unix_day (Year year, Month month, Day day) noexcept |
Convert a calendar date to UNIX day count. | |
template<class T = uday_t> | |
constexpr T | time_shield::get_unix_day (ts_t ts=time_shield::ts()) noexcept |
Get UNIX day. | |
template<class T = int> | |
constexpr T | time_shield::get_days_difference (ts_t start, ts_t stop) noexcept |
Get the number of days between two timestamps. | |
template<class T = uday_t> | |
constexpr T | time_shield::get_unix_day_ms (ts_ms_t t_ms=time_shield::ts_ms()) noexcept |
Get UNIX day from milliseconds timestamp. | |
template<class T = ts_t> | |
constexpr T | time_shield::unix_day_to_timestamp (uday_t unix_day) noexcept |
Converts a UNIX day to a timestamp in seconds. | |
template<class T = ts_t> | |
constexpr T | time_shield::unix_day_to_timestamp_ms (uday_t unix_day) noexcept |
Converts a UNIX day to a timestamp in milliseconds. | |
template<class T = ts_t> | |
constexpr T | time_shield::end_of_day_from_unix_day (uday_t unix_day) noexcept |
Converts a UNIX day to a timestamp representing the end of the day in seconds. | |
template<class T = ts_ms_t> | |
constexpr T | time_shield::end_of_day_from_unix_day_ms (uday_t unix_day) noexcept |
Converts a UNIX day to a timestamp representing the end of the day in milliseconds. | |
template<class T = ts_ms_t> | |
constexpr T | time_shield::start_of_next_day_from_unix_day (uday_t unix_day) noexcept |
Converts a UNIX day to a timestamp representing the start of the next day in seconds. | |
template<class T = ts_ms_t> | |
constexpr T | time_shield::start_of_next_day_from_unix_day_ms (uday_t unix_day) noexcept |
Converts a UNIX day to a timestamp representing the start of the next day in milliseconds. | |
template<class T = int64_t> | |
constexpr T | time_shield::get_unix_min (ts_t ts=time_shield::ts()) |
Get UNIX minute. | |
template<class T = int> | |
constexpr T | time_shield::sec_of_day (ts_t ts=time_shield::ts()) noexcept |
Get the second of the day. | |
template<class T = int> | |
constexpr T | time_shield::sec_of_day_ms (ts_ms_t ts_ms) noexcept |
Get the second of the day from milliseconds timestamp. | |
template<class T1 = int, class T2 = int> | |
constexpr T1 | time_shield::sec_of_day (T2 hour, T2 min, T2 sec) noexcept |
Get the second of the day. | |
template<class T = int> | |
constexpr T | time_shield::sec_of_min (ts_t ts=time_shield::ts()) |
Get the second of the minute. | |
template<class T = int> | |
constexpr T | time_shield::sec_of_hour (ts_t ts=time_shield::ts()) |
Get the second of the hour. | |
template<class T = year_t> | |
TIME_SHIELD_CONSTEXPR T | time_shield::get_year (ts_t ts=time_shield::ts()) |
Get the year from the timestamp. | |
template<class T = year_t> | |
TIME_SHIELD_CONSTEXPR T | time_shield::get_year_ms (ts_ms_t ts_ms=time_shield::ts_ms()) |
Get the year from the timestamp in milliseconds. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::start_of_year (ts_t ts) noexcept |
Get the start of the year timestamp. | |
TIME_SHIELD_CONSTEXPR ts_ms_t | time_shield::start_of_year_ms (ts_ms_t ts_ms=time_shield::ts_ms()) noexcept |
Get the start of the year timestamp in milliseconds. | |
template<class T = year_t> | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::start_of_year_date (T year) |
Get the timestamp of the start of the year. | |
template<class T = year_t> | |
TIME_SHIELD_CONSTEXPR ts_ms_t | time_shield::start_of_year_date_ms (T year) |
Get the timestamp in milliseconds of the start of the year. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::end_of_year (ts_t ts=time_shield::ts()) |
Get the end-of-year timestamp. | |
template<class T = year_t> | |
TIME_SHIELD_CONSTEXPR ts_ms_t | time_shield::end_of_year_ms (ts_ms_t ts_ms=time_shield::ts_ms()) |
Get the timestamp in milliseconds of the end of the year. | |
template<class T = int> | |
T | time_shield::day_of_year (ts_t ts=time_shield::ts()) |
Get the day of the year. | |
template<class T = Month> | |
TIME_SHIELD_CONSTEXPR T | time_shield::month_of_year (ts_t ts) noexcept |
Get the month of the year. | |
template<class T = int> | |
TIME_SHIELD_CONSTEXPR T | time_shield::day_of_month (ts_t ts=time_shield::ts()) |
Get the day of the month. | |
template<class T1 = int, class T2 = year_t, class T3 = int> | |
constexpr T1 | time_shield::num_days_in_month (T2 year, T3 month) noexcept |
Get the number of days in a month. | |
template<class T1 = int> | |
TIME_SHIELD_CONSTEXPR T1 | time_shield::num_days_in_month_ts (ts_t ts=time_shield::ts()) noexcept |
Get the number of days in the month of the given timestamp. | |
TIME_SHIELD_CONSTEXPR int | time_shield::first_workday_day (year_t year, int month) noexcept |
Compute the calendar day number of the first workday in a month. | |
TIME_SHIELD_CONSTEXPR int | time_shield::last_workday_day (year_t year, int month) noexcept |
Compute the calendar day number of the last workday in a month. | |
TIME_SHIELD_CONSTEXPR int | time_shield::count_workdays_in_month (year_t year, int month) noexcept |
Count the number of workdays contained within a month. | |
TIME_SHIELD_CONSTEXPR int | time_shield::workday_index_in_month (year_t year, int month, int day) noexcept |
Determine the 1-based index of a workday within its month. | |
TIME_SHIELD_CONSTEXPR bool | time_shield::is_first_workday_of_month (year_t year, int month, int day) noexcept |
Check whether a date is the first workday of its month. | |
TIME_SHIELD_CONSTEXPR bool | time_shield::is_within_first_workdays_of_month (year_t year, int month, int day, int count) noexcept |
Check whether a date is within the first N workdays of its month. | |
TIME_SHIELD_CONSTEXPR bool | time_shield::is_last_workday_of_month (year_t year, int month, int day) noexcept |
Check whether a date is the last workday of its month. | |
TIME_SHIELD_CONSTEXPR bool | time_shield::is_within_last_workdays_of_month (year_t year, int month, int day, int count) noexcept |
Check whether a date is within the last N workdays of its month. | |
TIME_SHIELD_CONSTEXPR bool | time_shield::is_first_workday_of_month (ts_t ts) noexcept |
Check whether a timestamp in seconds falls on the first workday of its month. | |
TIME_SHIELD_CONSTEXPR bool | time_shield::is_within_first_workdays_of_month (ts_t ts, int count) noexcept |
Check whether a timestamp in seconds falls within the first N workdays of its month. | |
TIME_SHIELD_CONSTEXPR bool | time_shield::is_last_workday_of_month (ts_t ts) noexcept |
Check whether a timestamp in seconds falls on the last workday of its month. | |
TIME_SHIELD_CONSTEXPR bool | time_shield::is_within_last_workdays_of_month (ts_t ts, int count) noexcept |
Check whether a timestamp in seconds falls within the last N workdays of its month. | |
TIME_SHIELD_CONSTEXPR bool | time_shield::is_first_workday_of_month_ms (ts_ms_t ts_ms) noexcept |
Check whether a timestamp in milliseconds falls on the first workday of its month. | |
TIME_SHIELD_CONSTEXPR bool | time_shield::is_within_first_workdays_of_month_ms (ts_ms_t ts_ms, int count) noexcept |
Check whether a timestamp in milliseconds falls within the first N workdays of its month. | |
TIME_SHIELD_CONSTEXPR bool | time_shield::is_last_workday_of_month_ms (ts_ms_t ts_ms) noexcept |
Check whether a timestamp in milliseconds falls on the last workday of its month. | |
TIME_SHIELD_CONSTEXPR bool | time_shield::is_within_last_workdays_of_month_ms (ts_ms_t ts_ms, int count) noexcept |
Check whether a timestamp in milliseconds falls within the last N workdays of its month. | |
template<class T1 = int, class T2 = year_t> | |
constexpr T1 | time_shield::num_days_in_year (T2 year) noexcept |
Get the number of days in a given year. | |
template<class T = int> | |
constexpr T | time_shield::num_days_in_year_ts (ts_t ts=time_shield::ts()) |
Get the number of days in the current year. | |
constexpr ts_t | time_shield::start_of_day (ts_t ts=time_shield::ts()) noexcept |
Get the start of the day timestamp. | |
template<class T = int> | |
constexpr ts_t | time_shield::start_of_prev_day (ts_t ts=time_shield::ts(), T days=1) noexcept |
Get timestamp of the start of the previous day. | |
constexpr ts_t | time_shield::start_of_day_sec (ts_ms_t ts_ms=time_shield::ts_ms()) noexcept |
Get the start of the day timestamp in seconds. | |
constexpr ts_ms_t | time_shield::start_of_day_ms (ts_ms_t ts_ms=time_shield::ts_ms()) noexcept |
Get the start of the day timestamp in milliseconds. | |
template<class T = int> | |
constexpr ts_t | time_shield::start_of_next_day (ts_t ts, T days=1) noexcept |
Get the timestamp of the start of the day after a specified number of days. | |
template<class T = int> | |
constexpr ts_ms_t | time_shield::start_of_next_day_ms (ts_ms_t ts_ms, T days=1) noexcept |
Get the timestamp of the start of the day after a specified number of days. | |
template<class T = int> | |
constexpr ts_t | time_shield::next_day (ts_t ts, T days=1) noexcept |
Calculate the timestamp for a specified number of days in the future. | |
template<class T = int> | |
constexpr ts_ms_t | time_shield::next_day_ms (ts_ms_t ts_ms, T days=1) noexcept |
Calculate the timestamp for a specified number of days in the future (milliseconds). | |
constexpr ts_t | time_shield::end_of_day (ts_t ts=time_shield::ts()) noexcept |
Get the timestamp at the end of the day. | |
constexpr ts_t | time_shield::end_of_day_sec (ts_ms_t ts_ms=time_shield::ts_ms()) noexcept |
Get the timestamp at the end of the day in seconds. | |
constexpr ts_ms_t | time_shield::end_of_day_ms (ts_ms_t ts_ms=time_shield::ts_ms()) noexcept |
Get the timestamp at the end of the day in milliseconds. | |
template<class T1 = Weekday, class T2 = year_t, class T3 = int, class T4 = int> | |
constexpr T1 | time_shield::day_of_week_date (T2 year, T3 month, T4 day) |
Get the day of the week. | |
template<class T1 = Weekday, class T2> | |
constexpr T1 | time_shield::get_weekday_from_date (const T2 &date) |
Get the day of the week from a date structure. | |
template<class T = Weekday> | |
constexpr T | time_shield::get_weekday_from_ts (ts_t ts) noexcept |
Get the weekday from a timestamp. | |
template<class T = Weekday> | |
constexpr T | time_shield::get_weekday_from_ts_ms (ts_ms_t ts_ms) |
Get the weekday from a timestamp in milliseconds. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::start_of_month (ts_t ts=time_shield::ts()) |
Get the timestamp at the start of the current month. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::end_of_month (ts_t ts=time_shield::ts()) |
Get the last timestamp of the current month. | |
TIME_SHIELD_CONSTEXPR ts_t | time_shield::last_sunday_of_month (ts_t ts=time_shield::ts()) |
Get the timestamp of the last Sunday of the current month. | |
template<class T1 = int, class T2 = year_t, class T3 = int> | |
TIME_SHIELD_CONSTEXPR T1 | time_shield::last_sunday_month_day (T2 year, T3 month) |
Get the day of the last Sunday of the given month and year. | |
constexpr ts_t | time_shield::start_of_hour (ts_t ts=time_shield::ts()) noexcept |
Get the timestamp at the start of the hour. | |
constexpr ts_t | time_shield::start_of_hour_sec (ts_ms_t ts_ms=time_shield::ts_ms()) noexcept |
Get the timestamp at the start of the hour. | |
constexpr ts_ms_t | time_shield::start_of_hour_ms (ts_ms_t ts_ms=time_shield::ts_ms()) noexcept |
Get the timestamp at the start of the hour. This function sets the minute and second to zero. | |
constexpr ts_t | time_shield::end_of_hour (ts_t ts=time_shield::ts()) noexcept |
Get the timestamp at the end of the hour. This function sets the minute and second to 59. | |
constexpr ts_t | time_shield::end_of_hour_sec (ts_ms_t ts_ms=time_shield::ts_ms()) noexcept |
Get the timestamp at the end of the hour. | |
constexpr ts_ms_t | time_shield::end_of_hour_ms (ts_ms_t ts_ms=time_shield::ts_ms()) noexcept |
Get the timestamp at the end of the hour. | |
template<class T = int> | |
constexpr T | time_shield::hour_of_day (ts_t ts=time_shield::ts()) noexcept |
Get the hour of the day. | |
constexpr ts_t | time_shield::start_of_week (ts_t ts=time_shield::ts()) |
Get the timestamp of the beginning of the week. | |
constexpr ts_t | time_shield::end_of_week (ts_t ts=time_shield::ts()) |
Get the timestamp of the end of the week. | |
constexpr ts_t | time_shield::start_of_saturday (ts_t ts=time_shield::ts()) |
Get the timestamp of the start of Saturday. | |
constexpr ts_t | time_shield::start_of_min (ts_t ts=time_shield::ts()) noexcept |
Get the timestamp of the beginning of the minute. | |
constexpr ts_t | time_shield::end_of_min (ts_t ts=time_shield::ts()) noexcept |
Get the timestamp of the end of the minute. | |
template<class T = int> | |
constexpr T | time_shield::min_of_day (ts_t ts=time_shield::ts()) noexcept |
Get minute of day. This function returns a value between 0 to 1439 (minute of day). | |
template<class T = int> | |
constexpr T | time_shield::min_of_hour (ts_t ts=time_shield::ts()) noexcept |
Get minute of hour. This function returns a value between 0 to 59. | |
template<class T = int> | |
constexpr ts_t | time_shield::start_of_period (T p, ts_t ts=time_shield::ts()) |
Get the timestamp of the start of the period. | |
template<class T = int> | |
constexpr ts_t | time_shield::end_of_period (T p, ts_t ts=time_shield::ts()) |
Get the timestamp of the end of the period. | |
template<class T = TimeZoneStruct> | |
T | time_shield::to_time_zone (tz_t offset) |
Converts an integer to a time zone structure. | |
Utility functions for converting between time units.
A comprehensive set of functions and utilities for working with timestamps and time-related data.
This module provides functionalities to convert, manipulate, and analyze timestamps in seconds, milliseconds, and floating-point formats. It also includes utilities for working with date-time structures, UNIX days, and various time units (hours, minutes, seconds, etc.).
datetime time_shield::cet_to_gmt | ( | const datetime | cet | ) |
Convert Central European Time to Greenwich Mean Time.
cet | Timestamp in seconds in CET. |
Definition at line 27 of file time_zone_conversions.mqh.
int time_shield::count_workdays_in_month | ( | long | year, |
int | month ) |
Definition at line 851 of file time_conversions.mqh.
|
inlinenoexcept |
Count the number of workdays contained within a month.
year | Year component of the month to analyse. |
month | Month component (1-12). |
Definition at line 1458 of file time_conversions.hpp.
long time_shield::date_to_unix_day | ( | const long | year, |
const int | month, | ||
const int | day ) |
Convert calendar date to UNIX day.
year | Year component. |
month | Month component. |
day | Day component. |
Definition at line 1180 of file time_conversions.mqh.
|
inlinenoexcept |
Convert a calendar date to UNIX day count.
Calculates the number of days since the UNIX epoch (January 1, 1970) for the provided calendar date components.
Year | Type of the year component. |
Month | Type of the month component. |
Day | Type of the day component. |
year | Year component of the date. |
month | Month component of the date. |
day | Day component of the date. |
Definition at line 854 of file time_conversions.hpp.
long time_shield::day_end | ( | long | ts | ) |
Alias for end_of_day.
Get the timestamp at the end of the day.
This function sets the hour to 23, minute to 59, and second to 59.
ts | Timestamp. |
Definition at line 539 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for end_of_day function.
Get the timestamp at the end of the day.
This function sets the hour to 23, minute to 59, and second to 59.
ts | Timestamp. |
Definition at line 1683 of file time_conversion_aliases.hpp.
long time_shield::day_end_ms | ( | long | ts_ms | ) |
Alias for end_of_day_ms.
Get the timestamp at the end of the day in milliseconds.
This function sets the hour to 23, minute to 59, second to 59, and millisecond to 999.
ts_ms | Timestamp in milliseconds. |
Definition at line 561 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for end_of_day_ms function.
Get the timestamp at the end of the day in milliseconds.
This function sets the hour to 23, minute to 59, second to 59, and millisecond to 999.
ts_ms | Timestamp in milliseconds. |
Definition at line 1699 of file time_conversion_aliases.hpp.
long time_shield::day_end_sec | ( | long | ts_ms | ) |
Alias for end_of_day_sec.
Get the timestamp at the end of the day in seconds.
This function sets the hour to 23, minute to 59, and second to 59.
ts_ms | Timestamp in milliseconds. |
Definition at line 550 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for end_of_day_sec function.
Get the timestamp at the end of the day in seconds.
This function sets the hour to 23, minute to 59, and second to 59.
ts_ms | Timestamp in milliseconds. |
Definition at line 1691 of file time_conversion_aliases.hpp.
int time_shield::day_of_month | ( | long | ts | ) |
Get the day of the month.
ts | Timestamp in seconds. |
Definition at line 768 of file time_conversions.mqh.
|
inline |
Get the day of the month.
This function returns the day of the month for the specified timestamp.
ts | Timestamp. |
Definition at line 1354 of file time_conversions.hpp.
Weekday time_shield::day_of_week | ( | const DateTimeStruct & | dt | ) |
Alias for get_weekday_from_date with DateTimeStruct.
Get weekday from a DateTimeStruct.
dt | Date structure with fields year, mon, day. |
Definition at line 604 of file time_conversions.mqh.
Weekday time_shield::day_of_week | ( | const MqlDateTime & | dt | ) |
Alias for get_weekday_from_date with MqlDateTime.
Get weekday from a MqlDateTime structure.
dt | Standard MqlDateTime structure. |
Definition at line 612 of file time_conversions.mqh.
|
constexpr |
Alias for get_weekday_from_date.
Get the day of the week from a date structure.
This function takes a date structure with fields 'year', 'mon', and 'day', and returns the day of the week (SUN = 0, MON = 1, ... SAT = 6).
date | Structure containing year, month, and day. |
Definition at line 1799 of file time_conversion_aliases.hpp.
Weekday time_shield::day_of_week | ( | long | ts | ) |
Alias for get_weekday_from_ts.
Get the weekday from a timestamp.
ts | Timestamp. |
Definition at line 623 of file time_conversions.mqh.
Weekday time_shield::day_of_week | ( | long | year, |
int | month, | ||
int | day ) |
Alias for day_of_week_date.
Get the day of the week.
year | Year. |
month | Month. |
day | Day. |
Definition at line 582 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for get_weekday_from_ts.
Get the weekday from a timestamp.
ts | Timestamp. |
Definition at line 1817 of file time_conversion_aliases.hpp.
|
constexpr |
Alias for day_of_week_date.
Get the day of the week.
year | Year. |
month | Month. |
day | Day. |
Definition at line 1708 of file time_conversion_aliases.hpp.
|
constexpr |
Alias for day_of_week_date.
Get the day of the week.
year | Year. |
month | Month. |
day | Day. |
Definition at line 1715 of file time_conversion_aliases.hpp.
Weekday time_shield::day_of_week_date | ( | long | year, |
int | month, | ||
int | day ) |
Get the day of the week for a date.
year | Year value. |
month | Month value. |
day | Day of the month. |
Definition at line 568 of file time_conversions.mqh.
|
constexpr |
Get the day of the week.
year | Year. |
month | Month. |
day | Day. |
Definition at line 1832 of file time_conversions.hpp.
Weekday time_shield::day_of_week_dt | ( | const DateTimeStruct & | dt | ) |
Alias for get_weekday_from_date with DateTimeStruct.
Get weekday from a DateTimeStruct.
dt | Date structure with fields year, mon, day. |
Definition at line 600 of file time_conversions.mqh.
Weekday time_shield::day_of_week_dt | ( | const MqlDateTime & | dt | ) |
Alias for get_weekday_from_date with MqlDateTime.
Get weekday from a MqlDateTime structure.
dt | Standard MqlDateTime structure. |
Definition at line 608 of file time_conversions.mqh.
|
constexpr |
Alias for get_weekday_from_date.
Get the day of the week from a date structure.
This function takes a date structure with fields 'year', 'mon', and 'day', and returns the day of the week (SUN = 0, MON = 1, ... SAT = 6).
date | Structure containing year, month, and day. |
Definition at line 1791 of file time_conversion_aliases.hpp.
Weekday time_shield::day_of_week_ms | ( | long | ts_ms | ) |
Alias for get_weekday_from_ts_ms.
Get the weekday from a timestamp in milliseconds.
ts_ms | Timestamp in milliseconds. |
Definition at line 634 of file time_conversions.mqh.
|
constexpr |
Alias for get_weekday_from_ts_ms function.
Get the weekday from a timestamp in milliseconds.
ts_ms | Timestamp in milliseconds. |
Definition at line 1847 of file time_conversion_aliases.hpp.
int time_shield::day_of_year | ( | long | ts | ) |
Get the day of the year.
ts | Timestamp in seconds. |
Definition at line 735 of file time_conversions.mqh.
|
inline |
Get the day of the year.
This function returns the day of the year for the specified timestamp.
ts | Timestamp. |
Definition at line 1311 of file time_conversions.hpp.
long time_shield::day_start | ( | long | ts | ) |
Alias for start_of_day.
Get the start of the day timestamp.
This function returns the timestamp at the start of the day. The function sets the hours, minutes, and seconds to zero.
ts | Timestamp. |
Definition at line 454 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for start_of_day function.
Get the start of the day timestamp.
This function returns the timestamp at the start of the day. The function sets the hours, minutes, and seconds to zero.
ts | Timestamp. |
Definition at line 1626 of file time_conversion_aliases.hpp.
long time_shield::day_start_ms | ( | long | ts_ms | ) |
Alias for start_of_day_ms.
Get the start of the day timestamp in milliseconds.
This function returns the timestamp at the start of the day in milliseconds. The function sets the hours, minutes, seconds, and milliseconds to zero.
ts_ms | Timestamp in milliseconds. |
Definition at line 488 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for start_of_day_ms function.
Get the start of the day timestamp in milliseconds.
This function returns the timestamp at the start of the day in milliseconds. The function sets the hours, minutes, seconds, and milliseconds to zero.
ts_ms | Timestamp in milliseconds. |
Definition at line 1657 of file time_conversion_aliases.hpp.
long time_shield::day_start_sec | ( | long | ts_ms | ) |
Alias for start_of_day_sec.
Get the start of the day timestamp in seconds.
This function returns the timestamp at the start of the day in seconds. The function sets the hours, minutes, and seconds to zero.
ts_ms | Timestamp in milliseconds. |
Definition at line 477 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for start_of_day_sec function.
Get the start of the day timestamp in seconds.
This function returns the timestamp at the start of the day in seconds. The function sets the hours, minutes, and seconds to zero.
ts_ms | Timestamp in milliseconds. |
Definition at line 1643 of file time_conversion_aliases.hpp.
int time_shield::days | ( | long | start, |
long | stop ) |
Alias for get_days_difference.
Get the number of days between two timestamps.
This function calculates the number of days between two timestamps.
T | The type of the return value, defaults to int. |
start | The timestamp of the start of the period. |
stop | The timestamp of the end of the period. |
Definition at line 1227 of file time_conversions.mqh.
Alias for get_days_difference function.
Get the number of days between two timestamps.
This function calculates the number of days between two timestamps.
T | The type of the return value, defaults to int. |
start | The timestamp of the start of the period. |
stop | The timestamp of the end of the period. |
Definition at line 1465 of file time_conversion_aliases.hpp.
int time_shield::days_in_month | ( | long | ts | ) |
Alias for num_days_in_month_ts.
Get the number of days in the month of the given timestamp.
This function calculates and returns the number of days in the month of the specified timestamp.
ts | The timestamp to extract month and year from. |
Definition at line 827 of file time_conversions.mqh.
int time_shield::days_in_month | ( | long | year, |
int | month ) |
Alias for num_days_in_month.
Get the number of days in a month.
year | Year value. |
month | Month value. |
Definition at line 807 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for num_days_in_month function.
year | Year as an integer. |
month | Month as an integer. |
Definition at line 1584 of file time_conversion_aliases.hpp.
|
constexprnoexcept |
Alias for num_days_in_month_ts function.
Get the number of days in the month of the given timestamp.
This function calculates and returns the number of days in the month of the specified timestamp.
ts | The timestamp to extract month and year from. |
Definition at line 1600 of file time_conversion_aliases.hpp.
int time_shield::days_in_year | ( | long | year | ) |
Alias for num_days_in_year.
Get the number of days in a given year.
This function calculates and returns the number of days in the specified year.
year | Year. |
Definition at line 945 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for num_days_in_year function.
Get the number of days in a given year.
This function calculates and returns the number of days in the specified year.
year | Year. |
Definition at line 1609 of file time_conversion_aliases.hpp.
int time_shield::days_in_year_ts | ( | long | ts | ) |
Alias for num_days_in_year_ts.
Get the number of days in the current year.
This function calculates and returns the number of days in the current year based on the provided timestamp.
ts | Timestamp. |
Definition at line 957 of file time_conversions.mqh.
|
constexpr |
Alias for num_days_in_year_ts function.
Get the number of days in the current year.
This function calculates and returns the number of days in the current year based on the provided timestamp.
ts | Timestamp. |
Definition at line 1618 of file time_conversion_aliases.hpp.
|
constexpr |
Alias for get_weekday_from_date.
Get the day of the week from a date structure.
This function takes a date structure with fields 'year', 'mon', and 'day', and returns the day of the week (SUN = 0, MON = 1, ... SAT = 6).
date | Structure containing year, month, and day. |
Definition at line 1807 of file time_conversion_aliases.hpp.
|
constexpr |
Alias for day_of_week_date.
Get the day of the week.
year | Year. |
month | Month. |
day | Day. |
Definition at line 1750 of file time_conversion_aliases.hpp.
Alias for day_of_week_date.
Get the day of the week.
year | Year. |
month | Month. |
day | Day. |
Definition at line 1757 of file time_conversion_aliases.hpp.
|
constexpr |
Alias for get_weekday_from_date.
Get the day of the week from a date structure.
This function takes a date structure with fields 'year', 'mon', and 'day', and returns the day of the week (SUN = 0, MON = 1, ... SAT = 6).
date | Structure containing year, month, and day. |
Definition at line 1775 of file time_conversion_aliases.hpp.
|
constexprnoexcept |
Alias for get_weekday_from_ts.
Get the weekday from a timestamp.
ts | Timestamp. |
Definition at line 1824 of file time_conversion_aliases.hpp.
double time_shield::dt_to_ftimestamp | ( | const DateTimeStruct & | dt | ) |
Convert a DateTimeStruct to floating-point timestamp.
dt | Structure with date and time fields. |
Definition at line 422 of file time_conversions.mqh.
double time_shield::dt_to_ftimestamp | ( | const MqlDateTime & | dt | ) |
Convert an MqlDateTime structure to floating-point timestamp.
dt | Standard MqlDateTime structure. |
Definition at line 429 of file time_conversions.mqh.
|
inline |
Converts a date-time structure to a floating-point timestamp.
This function converts a given date and time structure to a floating-point timestamp, which is the number of seconds (with fractional milliseconds) since the Unix epoch (January 1, 1970).
T | The type of the date-time structure. |
date_time | The date-time structure containing year, month, day, hour, minute, second, and millisecond fields. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 817 of file time_conversions.hpp.
long time_shield::dt_to_timestamp | ( | const DateTimeStruct & | dt | ) |
Convert a DateTimeStruct to timestamp.
dt | Structure with date and time fields. |
Definition at line 321 of file time_conversions.mqh.
long time_shield::dt_to_timestamp | ( | const MqlDateTime & | dt | ) |
Convert an MqlDateTime structure to timestamp.
dt | Standard MqlDateTime structure. |
Definition at line 335 of file time_conversions.mqh.
|
inline |
Converts a date-time structure to a timestamp.
This function converts a given date and time to a timestamp, which is the number of seconds since the Unix epoch (January 1, 1970).
T | The type of the date-time structure. |
date_time | The date-time structure. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 675 of file time_conversions.hpp.
long time_shield::dt_to_timestamp_ms | ( | const DateTimeStruct & | dt | ) |
Convert a DateTimeStruct to a timestamp in milliseconds.
dt | Structure with date and time fields. |
Definition at line 400 of file time_conversions.mqh.
long time_shield::dt_to_timestamp_ms | ( | const MqlDateTime & | dt | ) |
Convert an MqlDateTime structure to a timestamp in milliseconds.
dt | Standard MqlDateTime structure. |
Definition at line 407 of file time_conversions.mqh.
|
inline |
Converts a date-time structure to a timestamp in milliseconds.
This function converts a given date-time structure to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
T | The type of the date-time structure. |
date_time | The date-time structure. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 750 of file time_conversions.hpp.
datetime time_shield::eet_to_gmt | ( | const datetime | eet | ) |
Convert Eastern European Time to Greenwich Mean Time.
eet | Timestamp in seconds in EET. |
Definition at line 104 of file time_zone_conversions.mqh.
long time_shield::end_of_day | ( | long | ts | ) |
Get the end of the day for a timestamp.
ts | Timestamp in seconds. |
Definition at line 533 of file time_conversions.mqh.
|
constexprnoexcept |
Get the timestamp at the end of the day.
This function sets the hour to 23, minute to 59, and second to 59.
ts | Timestamp. |
Definition at line 1792 of file time_conversions.hpp.
long time_shield::end_of_day_from_unix_day | ( | long | uday | ) |
Get end of day timestamp from UNIX day.
uday | UNIX day value. |
Definition at line 1301 of file time_conversions.mqh.
|
constexprnoexcept |
Converts a UNIX day to a timestamp representing the end of the day in seconds.
Converts a number of days since the UNIX epoch (January 1, 1970) to the corresponding timestamp in seconds at the end of the specified day (23:59:59).
T | The return type of the function (default is ts_t). |
unix_day | The number of days since the UNIX epoch. |
Definition at line 951 of file time_conversions.hpp.
long time_shield::end_of_day_from_unix_day_ms | ( | long | uday | ) |
Get end of day timestamp in ms from UNIX day.
uday | UNIX day value. |
Definition at line 1308 of file time_conversions.mqh.
|
constexprnoexcept |
Converts a UNIX day to a timestamp representing the end of the day in milliseconds.
Converts a number of days since the UNIX epoch (January 1, 1970) to the corresponding timestamp in milliseconds at the end of the specified day (23:59:59.999).
T | The return type of the function (default is ts_ms_t). |
unix_day | The number of days since the UNIX epoch. |
Definition at line 964 of file time_conversions.hpp.
long time_shield::end_of_day_ms | ( | long | ts_ms | ) |
Get the end of the day for a millisecond timestamp.
ts_ms | Timestamp in milliseconds. |
Definition at line 555 of file time_conversions.mqh.
|
constexprnoexcept |
Get the timestamp at the end of the day in milliseconds.
This function sets the hour to 23, minute to 59, second to 59, and millisecond to 999.
ts_ms | Timestamp in milliseconds. |
Definition at line 1816 of file time_conversions.hpp.
long time_shield::end_of_day_sec | ( | long | ts_ms | ) |
Get the end of the day in seconds from milliseconds timestamp.
ts_ms | Timestamp in milliseconds. |
Definition at line 544 of file time_conversions.mqh.
|
constexprnoexcept |
Get the timestamp at the end of the day in seconds.
This function sets the hour to 23, minute to 59, and second to 59.
ts_ms | Timestamp in milliseconds. |
Definition at line 1804 of file time_conversions.hpp.
long time_shield::end_of_hour | ( | long | ts | ) |
Get the end of the hour for a timestamp.
ts | Timestamp in seconds. |
Definition at line 1041 of file time_conversions.mqh.
|
constexprnoexcept |
Get the timestamp at the end of the hour. This function sets the minute and second to 59.
ts | Timestamp (default: current timestamp). |
Definition at line 1970 of file time_conversions.hpp.
long time_shield::end_of_hour_ms | ( | long | ts_ms | ) |
Get the end of the hour for a millisecond timestamp.
ts_ms | Timestamp in milliseconds. |
Definition at line 1063 of file time_conversions.mqh.
|
constexprnoexcept |
Get the timestamp at the end of the hour.
This function sets the minute and second to 59.
ts_ms | Timestamp in milliseconds (default: current timestamp in milliseconds). |
Definition at line 1994 of file time_conversions.hpp.
long time_shield::end_of_hour_sec | ( | long | ts_ms | ) |
Get the end of the hour in seconds from milliseconds timestamp.
ts_ms | Timestamp in milliseconds. |
Definition at line 1052 of file time_conversions.mqh.
|
constexprnoexcept |
Get the timestamp at the end of the hour.
This function sets the minute and second to 59.
ts_ms | Timestamp in milliseconds (default: current timestamp in milliseconds). |
Definition at line 1982 of file time_conversions.hpp.
long time_shield::end_of_min | ( | long | ts | ) |
Get the end of the minute for a timestamp.
ts | Timestamp in seconds. |
Definition at line 1129 of file time_conversions.mqh.
|
constexprnoexcept |
Get the timestamp of the end of the minute.
ts | Timestamp (default: current timestamp). |
Definition at line 2064 of file time_conversions.hpp.
long time_shield::end_of_month | ( | long | ts | ) |
Get the timestamp at the end of the month.
ts | Timestamp in seconds. |
Definition at line 973 of file time_conversions.mqh.
|
inline |
Get the last timestamp of the current month.
This function returns the last timestamp of the current month, setting the day to the last day of the month and the time to 23:59:59.
ts | Timestamp (default is current timestamp) |
Definition at line 1898 of file time_conversions.hpp.
long time_shield::end_of_period | ( | int | p, |
long | ts ) |
Get the end of a period.
p | Period length in seconds. |
ts | Timestamp (default current). |
Definition at line 1167 of file time_conversions.mqh.
|
constexpr |
Get the timestamp of the end of the period.
p | Period duration in seconds. |
ts | Timestamp (default: current timestamp). |
Definition at line 2108 of file time_conversions.hpp.
long time_shield::end_of_week | ( | long | ts | ) |
Get the end of the week (Saturday end).
ts | Timestamp in seconds. |
Definition at line 1096 of file time_conversions.mqh.
|
constexpr |
Get the timestamp of the end of the week.
This function finds the timestamp of the end of the week, which corresponds to the end of Saturday.
ts | Timestamp (default: current timestamp). |
Definition at line 2033 of file time_conversions.hpp.
long time_shield::end_of_year | ( | long | ts | ) |
Get the end of the year for a timestamp.
ts | Timestamp in seconds. |
Definition at line 648 of file time_conversions.mqh.
|
inline |
Get the end-of-year timestamp.
This function finds the last timestamp of the current year.
ts | Timestamp. |
Definition at line 1230 of file time_conversions.hpp.
long time_shield::end_of_year_ms | ( | long | ts_ms | ) |
Get the end of the year in milliseconds.
ts_ms | Timestamp in milliseconds. |
Definition at line 724 of file time_conversions.mqh.
|
inline |
Get the timestamp in milliseconds of the end of the year.
This function finds the last timestamp of the current year in milliseconds.
ts_ms | Timestamp in milliseconds. |
Definition at line 1298 of file time_conversions.hpp.
long time_shield::eod_from_unix_day | ( | long | uday | ) |
Alias for end_of_day_from_unix_day.
Get end of day timestamp from UNIX day.
uday | UNIX day value. |
Definition at line 1314 of file time_conversions.mqh.
long time_shield::eod_from_unix_day_ms | ( | long | uday | ) |
Alias for end_of_day_from_unix_day_ms.
Get end of day timestamp in ms from UNIX day.
uday | UNIX day value. |
Definition at line 1318 of file time_conversions.mqh.
int time_shield::final_sunday_month_day | ( | long | year, |
int | month ) |
Alias for last_sunday_month_day.
Get the day of the last Sunday of the given month and year.
This function returns the day of the last Sunday of the specified month and year.
year | Year |
month | Month (1 = January, 12 = December) |
Definition at line 1003 of file time_conversions.mqh.
|
inline |
Alias for last_sunday_month_day function.
Get the day of the last Sunday of the given month and year.
This function returns the day of the last Sunday of the specified month and year.
year | Year |
month | Month (1 = January, 12 = December) |
Definition at line 1880 of file time_conversion_aliases.hpp.
long time_shield::final_sunday_of_month | ( | long | ts | ) |
Alias for last_sunday_of_month.
Get the timestamp of the last Sunday of the current month.
This function returns the timestamp of the last Sunday of the current month, setting the day to the last Sunday and the time to 00:00:00.
ts | Timestamp (default is current timestamp) |
Definition at line 990 of file time_conversions.mqh.
|
inline |
Alias for last_sunday_of_month function.
Get the timestamp of the last Sunday of the current month.
This function returns the timestamp of the last Sunday of the current month, setting the day to the last Sunday and the time to 00:00:00.
ts | Timestamp (default is current timestamp) |
Definition at line 1871 of file time_conversion_aliases.hpp.
long time_shield::finish_of_hour | ( | long | ts | ) |
Alias for end_of_hour.
Get the timestamp at the end of the hour. This function sets the minute and second to 59.
ts | Timestamp (default: current timestamp). |
Definition at line 1047 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for end_of_hour function.
Get the timestamp at the end of the hour. This function sets the minute and second to 59.
ts | Timestamp (default: current timestamp). |
Definition at line 1912 of file time_conversion_aliases.hpp.
long time_shield::finish_of_hour_ms | ( | long | ts_ms | ) |
Alias for end_of_hour_ms.
Get the timestamp at the end of the hour.
This function sets the minute and second to 59.
ts_ms | Timestamp in milliseconds (default: current timestamp in milliseconds). |
Definition at line 1069 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for end_of_hour_ms function.
Get the timestamp at the end of the hour.
This function sets the minute and second to 59.
ts_ms | Timestamp in milliseconds (default: current timestamp in milliseconds). |
Definition at line 1928 of file time_conversion_aliases.hpp.
long time_shield::finish_of_hour_sec | ( | long | ts_ms | ) |
Alias for end_of_hour_sec.
Get the timestamp at the end of the hour.
This function sets the minute and second to 59.
ts_ms | Timestamp in milliseconds (default: current timestamp in milliseconds). |
Definition at line 1058 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for end_of_hour_sec function.
Get the timestamp at the end of the hour.
This function sets the minute and second to 59.
ts_ms | Timestamp in milliseconds (default: current timestamp in milliseconds). |
Definition at line 1920 of file time_conversion_aliases.hpp.
long time_shield::finish_of_min | ( | long | ts | ) |
Alias for end_of_min.
Get the timestamp of the end of the minute.
ts | Timestamp (default: current timestamp). |
Definition at line 1135 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for end_of_min function.
Get the timestamp of the end of the minute.
ts | Timestamp (default: current timestamp). |
Definition at line 1977 of file time_conversion_aliases.hpp.
long time_shield::finish_of_week | ( | long | ts | ) |
Alias for end_of_week.
Get the timestamp of the end of the week.
This function finds the timestamp of the end of the week, which corresponds to the end of Saturday.
ts | Timestamp (default: current timestamp). |
Definition at line 1102 of file time_conversions.mqh.
|
constexpr |
Alias for end_of_week function.
Get the timestamp of the end of the week.
This function finds the timestamp of the end of the week, which corresponds to the end of Saturday.
ts | Timestamp (default: current timestamp). |
Definition at line 1953 of file time_conversion_aliases.hpp.
int time_shield::first_workday_day | ( | long | year, |
int | month ) |
Definition at line 833 of file time_conversions.mqh.
|
inlinenoexcept |
Compute the calendar day number of the first workday in a month.
year | Year component of the month to analyse. |
month | Month component (1-12). |
Definition at line 1424 of file time_conversions.hpp.
Converts a floating-point timestamp from seconds to milliseconds.
ts | Timestamp in floating-point seconds. |
Definition at line 112 of file time_conversions.hpp.
|
constexpr |
Alias for tm_to_ftimestamp.
Converts a std::tm structure to a floating-point timestamp.
This function converts a given std::tm structure to a floating-point timestamp, which is the number of seconds (with fractional milliseconds) since the Unix epoch (January 1, 1970).
timeinfo | Pointer to the std::tm structure containing the date and time. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 1449 of file time_conversion_aliases.hpp.
|
constexpr |
Alias for dt_to_ftimestamp.
Converts a date-time structure to a floating-point timestamp.
This function converts a given date and time structure to a floating-point timestamp, which is the number of seconds (with fractional milliseconds) since the Unix epoch (January 1, 1970).
T | The type of the date-time structure. |
date_time | The date-time structure containing year, month, day, hour, minute, second, and millisecond fields. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 1419 of file time_conversion_aliases.hpp.
|
constexpr |
Alias for to_ftimestamp.
This function converts a given date and time to a floating-point timestamp, which is the number of seconds (with fractional milliseconds) since the Unix epoch (January 1, 1970).
T1 | The type of the year parameter (default is year_t). |
T2 | The type of the month, day, hour, minute, and second parameters (default is int). |
T3 | The type of the millisecond parameter (default is int). |
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value (default is 0). |
min | The minute value (default is 0). |
sec | The second value (default is 0). |
ms | The millisecond value (default is 0). |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 1385 of file time_conversion_aliases.hpp.
|
constexpr |
Alias for tm_to_ftimestamp.
Converts a std::tm structure to a floating-point timestamp.
This function converts a given std::tm structure to a floating-point timestamp, which is the number of seconds (with fractional milliseconds) since the Unix epoch (January 1, 1970).
timeinfo | Pointer to the std::tm structure containing the date and time. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 1442 of file time_conversion_aliases.hpp.
|
constexpr |
Alias for dt_to_ftimestamp.
Converts a date-time structure to a floating-point timestamp.
This function converts a given date and time structure to a floating-point timestamp, which is the number of seconds (with fractional milliseconds) since the Unix epoch (January 1, 1970).
T | The type of the date-time structure. |
date_time | The date-time structure containing year, month, day, hour, minute, second, and millisecond fields. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 1411 of file time_conversion_aliases.hpp.
|
constexpr |
Alias for to_ftimestamp.
This function converts a given date and time to a floating-point timestamp, which is the number of seconds (with fractional milliseconds) since the Unix epoch (January 1, 1970).
T1 | The type of the year parameter (default is year_t). |
T2 | The type of the month, day, hour, minute, and second parameters (default is int). |
T3 | The type of the millisecond parameter (default is int). |
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value (default is 0). |
min | The minute value (default is 0). |
sec | The second value (default is 0). |
ms | The millisecond value (default is 0). |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 1361 of file time_conversion_aliases.hpp.
int time_shield::get_days | ( | long | start, |
long | stop ) |
Alias for get_days_difference.
Get the number of days between two timestamps.
This function calculates the number of days between two timestamps.
T | The type of the return value, defaults to int. |
start | The timestamp of the start of the period. |
stop | The timestamp of the end of the period. |
Definition at line 1223 of file time_conversions.mqh.
Alias for get_days_difference function.
Get the number of days between two timestamps.
This function calculates the number of days between two timestamps.
T | The type of the return value, defaults to int. |
start | The timestamp of the start of the period. |
stop | The timestamp of the end of the period. |
Definition at line 1458 of file time_conversion_aliases.hpp.
int time_shield::get_days_difference | ( | long | start, |
long | stop ) |
Get number of days between two timestamps.
start | Start timestamp in seconds. |
stop | End timestamp in seconds. |
Definition at line 1217 of file time_conversions.mqh.
|
constexprnoexcept |
Get the number of days between two timestamps.
This function calculates the number of days between two timestamps.
T | The type of the return value, defaults to int. |
start | The timestamp of the start of the period. |
stop | The timestamp of the end of the period. |
Definition at line 892 of file time_conversions.hpp.
|
constexpr |
Alias for get_weekday_from_date.
Get the day of the week from a date structure.
This function takes a date structure with fields 'year', 'mon', and 'day', and returns the day of the week (SUN = 0, MON = 1, ... SAT = 6).
date | Structure containing year, month, and day. |
Definition at line 1767 of file time_conversion_aliases.hpp.
|
constexprnoexcept |
Alias for get_weekday_from_ts.
Get the weekday from a timestamp.
ts | Timestamp. |
Definition at line 1831 of file time_conversion_aliases.hpp.
|
constexpr |
Alias for tm_to_timestamp.
Converts a std::tm structure to a timestamp.
This function converts a standard C++ std::tm structure to a timestamp, which is the number of seconds since the Unix epoch (January 1, 1970).
timeinfo | Pointer to a std::tm structure containing the date and time information. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 748 of file time_conversion_aliases.hpp.
Alias for to_timestamp.
This function converts a given date and time to a timestamp, which is the number of seconds since the Unix epoch (January 1, 1970).
If the day
is ≥ 1970 and year
≤ 31, parameters are assumed to be in DD-MM-YYYY order and are automatically reordered.
year | The year value. |
month | The month value. |
day | The day value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 457 of file time_conversion_aliases.hpp.
|
inline |
Alias for to_timestamp.
This function converts a given date and time to a timestamp, which is the number of seconds since the Unix epoch (January 1, 1970).
If the day
is ≥ 1970 and year
≤ 31, parameters are assumed to be in DD-MM-YYYY order and are automatically reordered.
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 477 of file time_conversion_aliases.hpp.
|
inline |
Alias for to_timestamp.
This function converts a given date and time to a timestamp, which is the number of seconds since the Unix epoch (January 1, 1970).
If the day
is ≥ 1970 and year
≤ 31, parameters are assumed to be in DD-MM-YYYY order and are automatically reordered.
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value. |
min | The minute value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 498 of file time_conversion_aliases.hpp.
|
inline |
Alias for to_timestamp.
This function converts a given date and time to a timestamp, which is the number of seconds since the Unix epoch (January 1, 1970).
If the day
is ≥ 1970 and year
≤ 31, parameters are assumed to be in DD-MM-YYYY order and are automatically reordered.
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value. |
min | The minute value. |
sec | The second value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 520 of file time_conversion_aliases.hpp.
Alias for to_timestamp_ms.
This function converts a given date and time to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
T1 | The type of the year parameter (default is int64_t). |
T2 | The type of the other date and time parameters (default is int). |
year | The year value. |
month | The month value. |
day | The day value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 975 of file time_conversion_aliases.hpp.
Alias for to_timestamp_ms.
This function converts a given date and time to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
T1 | The type of the year parameter (default is int64_t). |
T2 | The type of the other date and time parameters (default is int). |
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 993 of file time_conversion_aliases.hpp.
|
constexpr |
Alias for to_timestamp_ms.
This function converts a given date and time to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
T1 | The type of the year parameter (default is int64_t). |
T2 | The type of the other date and time parameters (default is int). |
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value. |
min | The minute value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 1012 of file time_conversion_aliases.hpp.
|
constexpr |
Alias for to_timestamp_ms.
This function converts a given date and time to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
T1 | The type of the year parameter (default is int64_t). |
T2 | The type of the other date and time parameters (default is int). |
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value. |
min | The minute value. |
sec | The second value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 1032 of file time_conversion_aliases.hpp.
|
constexpr |
Alias for to_timestamp_ms.
This function converts a given date and time to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
T1 | The type of the year parameter (default is int64_t). |
T2 | The type of the other date and time parameters (default is int). |
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value. |
min | The minute value. |
sec | The second value. |
ms | The millisecond value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 1053 of file time_conversion_aliases.hpp.
|
constexpr |
Alias for tm_to_timestamp.
Converts a std::tm structure to a timestamp.
This function converts a standard C++ std::tm structure to a timestamp, which is the number of seconds since the Unix epoch (January 1, 1970).
timeinfo | Pointer to a std::tm structure containing the date and time information. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 736 of file time_conversion_aliases.hpp.
Alias for to_timestamp.
This function converts a given date and time to a timestamp, which is the number of seconds since the Unix epoch (January 1, 1970).
If the day
is ≥ 1970 and year
≤ 31, parameters are assumed to be in DD-MM-YYYY order and are automatically reordered.
year | The year value. |
month | The month value. |
day | The day value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 375 of file time_conversion_aliases.hpp.
Alias for to_timestamp.
This function converts a given date and time to a timestamp, which is the number of seconds since the Unix epoch (January 1, 1970).
If the day
is ≥ 1970 and year
≤ 31, parameters are assumed to be in DD-MM-YYYY order and are automatically reordered.
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 395 of file time_conversion_aliases.hpp.
|
inline |
Alias for to_timestamp.
This function converts a given date and time to a timestamp, which is the number of seconds since the Unix epoch (January 1, 1970).
If the day
is ≥ 1970 and year
≤ 31, parameters are assumed to be in DD-MM-YYYY order and are automatically reordered.
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value. |
min | The minute value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 416 of file time_conversion_aliases.hpp.
|
inline |
Alias for to_timestamp.
This function converts a given date and time to a timestamp, which is the number of seconds since the Unix epoch (January 1, 1970).
If the day
is ≥ 1970 and year
≤ 31, parameters are assumed to be in DD-MM-YYYY order and are automatically reordered.
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value. |
min | The minute value. |
sec | The second value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 438 of file time_conversion_aliases.hpp.
Alias for to_timestamp_ms.
This function converts a given date and time to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
T1 | The type of the year parameter (default is int64_t). |
T2 | The type of the other date and time parameters (default is int). |
year | The year value. |
month | The month value. |
day | The day value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 880 of file time_conversion_aliases.hpp.
Alias for to_timestamp_ms.
This function converts a given date and time to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
T1 | The type of the year parameter (default is int64_t). |
T2 | The type of the other date and time parameters (default is int). |
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 898 of file time_conversion_aliases.hpp.
Alias for to_timestamp_ms.
This function converts a given date and time to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
T1 | The type of the year parameter (default is int64_t). |
T2 | The type of the other date and time parameters (default is int). |
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value. |
min | The minute value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 917 of file time_conversion_aliases.hpp.
|
constexpr |
Alias for to_timestamp_ms.
This function converts a given date and time to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
T1 | The type of the year parameter (default is int64_t). |
T2 | The type of the other date and time parameters (default is int). |
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value. |
min | The minute value. |
sec | The second value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 937 of file time_conversion_aliases.hpp.
|
constexpr |
Alias for to_timestamp_ms.
This function converts a given date and time to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
T1 | The type of the year parameter (default is int64_t). |
T2 | The type of the other date and time parameters (default is int). |
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value. |
min | The minute value. |
sec | The second value. |
ms | The millisecond value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 958 of file time_conversion_aliases.hpp.
long time_shield::get_unix_day | ( | long | ts | ) |
Get UNIX day from timestamp.
ts | Timestamp in seconds. |
Definition at line 1193 of file time_conversions.mqh.
|
constexprnoexcept |
Get UNIX day.
This function returns the number of days elapsed since the UNIX epoch.
T | The return type of the function (default is unixday_t). |
ts | Timestamp in seconds (default is current timestamp). |
Definition at line 877 of file time_conversions.hpp.
long time_shield::get_unix_day_ms | ( | long | ts_ms | ) |
Get UNIX day from milliseconds timestamp.
ts_ms | Timestamp in milliseconds. |
Definition at line 1232 of file time_conversions.mqh.
|
constexprnoexcept |
Get UNIX day from milliseconds timestamp.
This function returns the number of days elapsed since the UNIX epoch, given a timestamp in milliseconds.
T | The return type of the function (default is unixday_t). |
t_ms | Timestamp in milliseconds (default is current timestamp in milliseconds). |
Definition at line 906 of file time_conversions.hpp.
long time_shield::get_unix_min | ( | long | ts | ) |
Get UNIX minute from timestamp.
ts | Timestamp in seconds. |
Definition at line 1357 of file time_conversions.mqh.
|
constexpr |
Get UNIX minute.
This function returns the number of minutes elapsed since the UNIX epoch.
T | The return type of the function (default is int64_t). |
ts | Timestamp in seconds (default is current timestamp). |
Definition at line 1004 of file time_conversions.hpp.
long time_shield::get_unix_year | ( | long | ts | ) |
Convert a UNIX timestamp to a year.
ts | UNIX timestamp in seconds. |
Definition at line 202 of file time_conversions.mqh.
|
constexprnoexcept |
Converts a UNIX timestamp to a year.
T | The type of the year (default is year_t). |
ts | UNIX timestamp. |
Definition at line 408 of file time_conversions.hpp.
long time_shield::get_unixday | ( | long | ts | ) |
Alias for get_unix_day.
Get UNIX day.
This function returns the number of days elapsed since the UNIX epoch.
T | The return type of the function (default is unixday_t). |
ts | Timestamp in seconds (default is current timestamp). |
Definition at line 1203 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for get_unix_day function.
Get UNIX day.
This function returns the number of days elapsed since the UNIX epoch.
T | The return type of the function (default is unixday_t). |
ts | Timestamp in seconds (default is current timestamp). |
Definition at line 40 of file time_conversion_aliases.hpp.
long time_shield::get_unixday_ms | ( | long | ts_ms | ) |
Alias for get_unix_day_ms.
Get UNIX day from milliseconds timestamp.
ts_ms | Timestamp in milliseconds. |
Definition at line 1242 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for get_unix_day_ms function.
Get UNIX day from milliseconds timestamp.
This function returns the number of days elapsed since the UNIX epoch, given a timestamp in milliseconds.
T | The return type of the function (default is unixday_t). |
t_ms | Timestamp in milliseconds (default is current timestamp in milliseconds). |
Definition at line 74 of file time_conversion_aliases.hpp.
Weekday time_shield::get_weekday | ( | long | year, |
int | month, | ||
int | day ) |
Alias for day_of_week_date.
Get the day of the week.
year | Year. |
month | Month. |
day | Day. |
Definition at line 578 of file time_conversions.mqh.
|
constexpr |
Alias for day_of_week_date.
Get the day of the week.
year | Year. |
month | Month. |
day | Day. |
Definition at line 1722 of file time_conversion_aliases.hpp.
|
constexpr |
Alias for day_of_week_date.
Get the day of the week.
year | Year. |
month | Month. |
day | Day. |
Definition at line 1729 of file time_conversion_aliases.hpp.
Weekday time_shield::get_weekday_from_date | ( | const DateTimeStruct & | dt | ) |
Get weekday from a DateTimeStruct.
dt | Date structure with fields year, mon, day. |
Definition at line 587 of file time_conversions.mqh.
Weekday time_shield::get_weekday_from_date | ( | const MqlDateTime & | dt | ) |
Get weekday from a MqlDateTime structure.
dt | Standard MqlDateTime structure. |
Definition at line 594 of file time_conversions.mqh.
|
constexpr |
Get the day of the week from a date structure.
This function takes a date structure with fields 'year', 'mon', and 'day', and returns the day of the week (SUN = 0, MON = 1, ... SAT = 6).
date | Structure containing year, month, and day. |
Definition at line 1852 of file time_conversions.hpp.
Weekday time_shield::get_weekday_from_ts | ( | long | ts | ) |
Get weekday from timestamp.
ts | Timestamp in seconds. |
Definition at line 617 of file time_conversions.mqh.
|
constexprnoexcept |
Get the weekday from a timestamp.
ts | Timestamp. |
Definition at line 1862 of file time_conversions.hpp.
Weekday time_shield::get_weekday_from_ts_ms | ( | long | ts_ms | ) |
Get weekday from millisecond timestamp.
ts_ms | Timestamp in milliseconds. |
Definition at line 628 of file time_conversions.mqh.
|
constexpr |
Get the weekday from a timestamp in milliseconds.
ts_ms | Timestamp in milliseconds. |
Definition at line 1872 of file time_conversions.hpp.
long time_shield::get_year | ( | long | ts | ) |
Get the year from a timestamp.
ts | Timestamp in seconds. |
Definition at line 240 of file time_conversions.mqh.
|
inline |
Get the year from the timestamp.
This function returns the year of the specified timestamp in seconds since the Unix epoch.
T | The return type of the function (default is year_t). |
ts | Timestamp in seconds (default is current timestamp). |
Definition at line 1086 of file time_conversions.hpp.
long time_shield::get_year_ms | ( | long | ts_ms | ) |
Get the year from a millisecond timestamp.
ts_ms | Timestamp in milliseconds. |
Definition at line 255 of file time_conversions.mqh.
|
inline |
Get the year from the timestamp in milliseconds.
This function returns the year of the specified timestamp in milliseconds since the Unix epoch.
T | The return type of the function (default is year_t). |
ts_ms | Timestamp in milliseconds (default is current timestamp). |
Definition at line 1100 of file time_conversions.hpp.
int time_shield::h24_to_h12 | ( | int | hour | ) |
Alias for hour24_to_12.
Converts a 24-hour format hour to a 12-hour format.
T | Numeric type of the hour (default is int). |
hour | The hour in 24-hour format to convert. |
Definition at line 193 of file time_conversions.mqh.
|
inlinenoexcept |
Alias for hour24_to_12 function.
Converts a 24-hour format hour to a 12-hour format.
T | Numeric type of the hour (default is int). |
hour | The hour in 24-hour format to convert. |
Definition at line 236 of file time_conversion_aliases.hpp.
int time_shield::hour24_to_12 | ( | int | hour | ) |
Convert a 24-hour format hour to a 12-hour format.
hour | Hour value in 24-hour format. |
Definition at line 186 of file time_conversions.mqh.
|
inlinenoexcept |
Converts a 24-hour format hour to a 12-hour format.
T | Numeric type of the hour (default is int). |
hour | The hour in 24-hour format to convert. |
Definition at line 445 of file time_conversions.hpp.
long time_shield::hour_begin | ( | long | ts | ) |
Alias for start_of_hour.
Get the timestamp at the start of the hour.
This function sets the minute and second to zero.
ts | Timestamp (default: current timestamp). |
Definition at line 1014 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for start_of_hour function.
Get the timestamp at the start of the hour.
This function sets the minute and second to zero.
ts | Timestamp (default: current timestamp). |
Definition at line 1888 of file time_conversion_aliases.hpp.
long time_shield::hour_begin_ms | ( | long | ts_ms | ) |
Alias for start_of_hour_ms.
Get the timestamp at the start of the hour. This function sets the minute and second to zero.
ts_ms | Timestamp in milliseconds (default: current timestamp in milliseconds). |
Definition at line 1036 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for start_of_hour_ms function.
Get the timestamp at the start of the hour. This function sets the minute and second to zero.
ts_ms | Timestamp in milliseconds (default: current timestamp in milliseconds). |
Definition at line 1904 of file time_conversion_aliases.hpp.
long time_shield::hour_begin_sec | ( | long | ts_ms | ) |
Alias for start_of_hour_sec.
Get the timestamp at the start of the hour.
This function sets the minute and second to zero.
ts_ms | Timestamp in milliseconds (default: current timestamp in milliseconds). |
Definition at line 1025 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for start_of_hour_sec function.
Get the timestamp at the start of the hour.
This function sets the minute and second to zero.
ts_ms | Timestamp in milliseconds (default: current timestamp in milliseconds). |
Definition at line 1896 of file time_conversion_aliases.hpp.
int time_shield::hour_in_day | ( | long | ts | ) |
Alias for hour_of_day.
Get the hour of the day.
This function returns a value between 0 to 23 representing the hour of the day.
ts | Timestamp (default: current timestamp). |
Definition at line 1080 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for hour_of_day function.
Get the hour of the day.
This function returns a value between 0 to 23 representing the hour of the day.
ts | Timestamp (default: current timestamp). |
Definition at line 1937 of file time_conversion_aliases.hpp.
int time_shield::hour_of_day | ( | long | ts | ) |
Get the hour of the day.
ts | Timestamp in seconds. |
Definition at line 1074 of file time_conversions.mqh.
|
constexprnoexcept |
Get the hour of the day.
This function returns a value between 0 to 23 representing the hour of the day.
ts | Timestamp (default: current timestamp). |
Definition at line 2007 of file time_conversions.hpp.
double time_shield::hour_to_fsec | ( | double | hr | ) |
Convert hours to floating-point seconds.
hr | Hours value. |
Definition at line 172 of file time_conversions.mqh.
|
constexprnoexcept |
Converts a timestamp from hours to floating-point seconds.
T | The type of the input timestamp (default is int). |
hr | Timestamp in hours. |
Definition at line 388 of file time_conversions.hpp.
long time_shield::hour_to_ms | ( | double | hr | ) |
Convert hours to milliseconds.
hr | Hours value. |
Definition at line 144 of file time_conversions.mqh.
|
constexprnoexcept |
Converts a timestamp from hours to milliseconds.
T1 | The type of the output timestamp (default is ts_ms_t). |
T2 | The type of the input timestamp. |
ts | Timestamp in hours. |
Definition at line 299 of file time_conversions.hpp.
|
constexprnoexcept |
Helper function for converting hours to milliseconds (integral version).
T | Type of the input timestamp. |
t | Timestamp in hours. |
tag | Type tag used to select the integral overload (must be std::false_type). |
Definition at line 288 of file time_conversions.hpp.
|
constexprnoexcept |
Helper function for converting hours to milliseconds (floating-point version).
T | Type of the input timestamp. |
t | Timestamp in hours. |
tag | std::true_type indicates a floating-point type (double or float). |
Definition at line 278 of file time_conversions.hpp.
long time_shield::hour_to_sec | ( | double | hr | ) |
Convert hours to seconds.
hr | Hours value. |
Definition at line 158 of file time_conversions.mqh.
|
constexprnoexcept |
Converts a timestamp from hours to seconds.
T1 | The type of the output timestamp (default is ts_t). |
T2 | The type of the input timestamp. |
ts | Timestamp in hours. |
Definition at line 357 of file time_conversions.hpp.
|
constexprnoexcept |
Helper function for converting hours to seconds (integral version).
T | Type of the input timestamp. |
t | Timestamp in hours. |
tag | std::false_type indicates a non-floating-point type. |
Definition at line 346 of file time_conversions.hpp.
|
constexprnoexcept |
Helper function for converting hours to seconds (floating-point version).
T | Type of the input timestamp. |
t | Timestamp in hours. |
tag | std::true_type indicates a floating-point type (double or float). |
Definition at line 336 of file time_conversions.hpp.
bool time_shield::is_first_workday_of_month | ( | const long | ts | ) |
Definition at line 903 of file time_conversions.mqh.
bool time_shield::is_first_workday_of_month | ( | long | year, |
int | month, | ||
int | day ) |
Definition at line 879 of file time_conversions.mqh.
|
inlinenoexcept |
Check whether a timestamp in seconds falls on the first workday of its month.
ts | Timestamp in seconds. |
Definition at line 1564 of file time_conversions.hpp.
|
inlinenoexcept |
Check whether a date is the first workday of its month.
year | Year component of the date. |
month | Month component of the date. |
day | Day component of the date. |
Definition at line 1504 of file time_conversions.hpp.
bool time_shield::is_first_workday_of_month_ms | ( | const long | ts_ms | ) |
Definition at line 919 of file time_conversions.mqh.
|
inlinenoexcept |
Check whether a timestamp in milliseconds falls on the first workday of its month.
ts_ms | Timestamp in milliseconds. |
Definition at line 1614 of file time_conversions.hpp.
bool time_shield::is_last_workday_of_month | ( | const long | ts | ) |
Definition at line 911 of file time_conversions.mqh.
bool time_shield::is_last_workday_of_month | ( | long | year, |
int | month, | ||
int | day ) |
Definition at line 891 of file time_conversions.mqh.
|
inlinenoexcept |
Check whether a timestamp in seconds falls on the last workday of its month.
ts | Timestamp in seconds. |
Definition at line 1589 of file time_conversions.hpp.
|
inlinenoexcept |
Check whether a date is the last workday of its month.
year | Year component of the date. |
month | Month component of the date. |
day | Day component of the date. |
Definition at line 1535 of file time_conversions.hpp.
bool time_shield::is_last_workday_of_month_ms | ( | const long | ts_ms | ) |
Definition at line 927 of file time_conversions.mqh.
|
inlinenoexcept |
Check whether a timestamp in milliseconds falls on the last workday of its month.
ts_ms | Timestamp in milliseconds. |
Definition at line 1633 of file time_conversions.hpp.
bool time_shield::is_within_first_workdays_of_month | ( | const long | ts, |
int | count ) |
Definition at line 907 of file time_conversions.mqh.
bool time_shield::is_within_first_workdays_of_month | ( | long | year, |
int | month, | ||
int | day, | ||
int | count ) |
Definition at line 883 of file time_conversions.mqh.
|
inlinenoexcept |
Check whether a timestamp in seconds falls within the first N workdays of its month.
ts | Timestamp in seconds. |
count | Number of leading workdays to test against. |
Definition at line 1577 of file time_conversions.hpp.
|
inlinenoexcept |
Check whether a date is within the first N workdays of its month.
year | Year component of the date. |
month | Month component of the date. |
day | Day component of the date. |
count | Number of leading workdays to test against. |
Definition at line 1516 of file time_conversions.hpp.
bool time_shield::is_within_first_workdays_of_month_ms | ( | const long | ts_ms, |
int | count ) |
Definition at line 923 of file time_conversions.mqh.
|
inlinenoexcept |
Check whether a timestamp in milliseconds falls within the first N workdays of its month.
ts_ms | Timestamp in milliseconds. |
count | Number of leading workdays to test against. |
Definition at line 1624 of file time_conversions.hpp.
bool time_shield::is_within_last_workdays_of_month | ( | const long | ts, |
int | count ) |
Definition at line 915 of file time_conversions.mqh.
bool time_shield::is_within_last_workdays_of_month | ( | long | year, |
int | month, | ||
int | day, | ||
int | count ) |
Definition at line 895 of file time_conversions.mqh.
|
inlinenoexcept |
Check whether a timestamp in seconds falls within the last N workdays of its month.
ts | Timestamp in seconds. |
count | Number of trailing workdays to test against. |
Definition at line 1602 of file time_conversions.hpp.
|
inlinenoexcept |
Check whether a date is within the last N workdays of its month.
year | Year component of the date. |
month | Month component of the date. |
day | Day component of the date. |
count | Number of trailing workdays to test against. |
Definition at line 1547 of file time_conversions.hpp.
bool time_shield::is_within_last_workdays_of_month_ms | ( | const long | ts_ms, |
int | count ) |
Definition at line 931 of file time_conversions.mqh.
|
inlinenoexcept |
Check whether a timestamp in milliseconds falls within the last N workdays of its month.
ts_ms | Timestamp in milliseconds. |
count | Number of trailing workdays to test against. |
Definition at line 1643 of file time_conversions.hpp.
long time_shield::last_day_of_month | ( | long | ts | ) |
Alias for end_of_month.
Get the last timestamp of the current month.
This function returns the last timestamp of the current month, setting the day to the last day of the month and the time to 23:59:59.
ts | Timestamp (default is current timestamp) |
Definition at line 979 of file time_conversions.mqh.
|
inline |
Alias for end_of_month function.
Get the last timestamp of the current month.
This function returns the last timestamp of the current month, setting the day to the last day of the month and the time to 23:59:59.
ts | Timestamp (default is current timestamp) |
Definition at line 1863 of file time_conversion_aliases.hpp.
int time_shield::last_sunday_month_day | ( | long | year, |
int | month ) |
Get the day of the last Sunday for the given month and year.
year | Year value. |
month | Month value. |
Definition at line 996 of file time_conversions.mqh.
|
inline |
Get the day of the last Sunday of the given month and year.
This function returns the day of the last Sunday of the specified month and year.
year | Year |
month | Month (1 = January, 12 = December) |
Definition at line 1925 of file time_conversions.hpp.
long time_shield::last_sunday_of_month | ( | long | ts | ) |
Get the timestamp of the last Sunday of the month.
ts | Timestamp in seconds. |
Definition at line 984 of file time_conversions.mqh.
|
inline |
Get the timestamp of the last Sunday of the current month.
This function returns the timestamp of the last Sunday of the current month, setting the day to the last Sunday and the time to 00:00:00.
ts | Timestamp (default is current timestamp) |
Definition at line 1911 of file time_conversions.hpp.
int time_shield::last_workday_day | ( | long | year, |
int | month ) |
Definition at line 842 of file time_conversions.mqh.
|
inlinenoexcept |
Compute the calendar day number of the last workday in a month.
year | Year component of the month to analyse. |
month | Month component (1-12). |
Definition at line 1441 of file time_conversions.hpp.
long time_shield::min_begin | ( | long | ts | ) |
Alias for start_of_min.
Get the timestamp of the beginning of the minute.
ts | Timestamp (default: current timestamp). |
Definition at line 1124 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for start_of_min function.
Get the timestamp of the beginning of the minute.
ts | Timestamp (default: current timestamp). |
Definition at line 1969 of file time_conversion_aliases.hpp.
int time_shield::min_in_hour | ( | long | ts | ) |
Alias for min_of_hour.
Get minute of hour. This function returns a value between 0 to 59.
ts | Timestamp in seconds (default: current timestamp). |
Definition at line 1153 of file time_conversions.mqh.
int time_shield::min_of_day | ( | long | ts | ) |
Get the minute of the day.
ts | Timestamp in seconds. |
Definition at line 1140 of file time_conversions.mqh.
|
constexprnoexcept |
Get minute of day. This function returns a value between 0 to 1439 (minute of day).
ts | Timestamp in seconds (default: current timestamp). |
Definition at line 2075 of file time_conversions.hpp.
int time_shield::min_of_hour | ( | long | ts | ) |
Get the minute of the hour.
ts | Timestamp in seconds. |
Definition at line 1147 of file time_conversions.mqh.
|
constexprnoexcept |
Get minute of hour. This function returns a value between 0 to 59.
ts | Timestamp in seconds (default: current timestamp). |
Definition at line 2086 of file time_conversions.hpp.
double time_shield::min_to_fsec | ( | double | min | ) |
Convert minutes to floating-point seconds.
min | Minutes value. |
Definition at line 126 of file time_conversions.mqh.
|
constexprnoexcept |
Converts a timestamp from minutes to floating-point seconds.
T | The type of the input timestamp (default is int). |
min | Timestamp in minutes. |
Definition at line 254 of file time_conversions.hpp.
long time_shield::min_to_ms | ( | double | min | ) |
Convert minutes to milliseconds.
min | Minutes value. |
Definition at line 98 of file time_conversions.mqh.
|
constexprnoexcept |
Converts a timestamp from minutes to milliseconds.
T1 | The type of the output timestamp (default is ts_ms_t). |
T2 | The type of the input timestamp. |
ts | Timestamp in minutes. |
Definition at line 166 of file time_conversions.hpp.
|
constexprnoexcept |
Helper function for converting minutes to milliseconds (integral version).
T | Type of the input timestamp. |
t | Timestamp in minutes. |
tag | std::false_type indicates a non-floating-point type. |
Definition at line 155 of file time_conversions.hpp.
|
constexprnoexcept |
Helper function for converting minutes to milliseconds (floating-point version).
T | Type of the input timestamp. |
t | Timestamp in minutes. |
tag | std::true_type indicates a floating-point type (double or float). |
Definition at line 145 of file time_conversions.hpp.
long time_shield::min_to_sec | ( | double | min | ) |
Convert minutes to seconds.
min | Minutes value. |
Definition at line 112 of file time_conversions.mqh.
|
constexprnoexcept |
Converts a timestamp from minutes to seconds.
T1 | The type of the output timestamp (default is ts_t). |
T2 | The type of the input timestamp. |
ts | Timestamp in minutes. |
Definition at line 223 of file time_conversions.hpp.
|
constexprnoexcept |
Helper function for converting minutes to seconds (integral version).
T | Type of the input timestamp. |
t | Timestamp in minutes. |
tag | std::false_type indicates a non-floating-point type. |
Definition at line 212 of file time_conversions.hpp.
|
constexprnoexcept |
Helper function for converting minutes to seconds (floating-point version).
T | Type of the input timestamp. |
t | Timestamp in minutes. |
tag | std::true_type indicates a floating-point type (double or float). |
Definition at line 202 of file time_conversions.hpp.
long time_shield::month_begin | ( | long | ts | ) |
Alias for start_of_month.
Get the timestamp at the start of the current month.
This function returns the timestamp at the start of the current month, setting the day to the first day of the month and the time to 00:00:00.
ts | Timestamp (default is current timestamp) |
Definition at line 968 of file time_conversions.mqh.
|
inline |
Alias for start_of_month function.
Get the timestamp at the start of the current month.
This function returns the timestamp at the start of the current month, setting the day to the first day of the month and the time to 00:00:00.
ts | Timestamp (default is current timestamp) |
Definition at line 1855 of file time_conversion_aliases.hpp.
Month time_shield::month_of_year | ( | long | ts | ) |
Get the month of the year.
ts | Timestamp in seconds. |
Definition at line 742 of file time_conversions.mqh.
|
inlinenoexcept |
Get the month of the year.
This function returns the month of the year for the specified timestamp.
ts | Timestamp. |
Definition at line 1324 of file time_conversions.hpp.
int time_shield::ms_of_sec | ( | double | ts | ) |
Get the millisecond part of a floating-point timestamp.
ts | Timestamp in seconds with fractional part. |
Definition at line 54 of file time_conversions.mqh.
|
constexprnoexcept |
Get the millisecond part of the second from a floating-point timestamp.
T | Type of the returned value (default is int). |
ts | Timestamp in floating-point seconds. |
Definition at line 51 of file time_conversions.hpp.
int time_shield::ms_of_ts | ( | long | ts_ms | ) |
Get the millisecond part of a millisecond timestamp.
ts_ms | Timestamp in milliseconds. |
Definition at line 62 of file time_conversions.mqh.
|
constexprnoexcept |
Get the millisecond part of the timestamp.
T | Type of the returned value (default is int). |
ts | Timestamp in milliseconds. |
Definition at line 61 of file time_conversions.hpp.
double time_shield::ms_to_fsec | ( | long | ms | ) |
Convert milliseconds to floating-point seconds.
ms | Timestamp in milliseconds. |
Definition at line 87 of file time_conversions.mqh.
|
constexprnoexcept |
Converts a timestamp from milliseconds to floating-point seconds.
T | The type of the input timestamp (default is ts_ms_t). |
ts_ms | Timestamp in milliseconds. |
Definition at line 131 of file time_conversions.hpp.
int time_shield::ms_to_hour | ( | long | ms | ) |
Convert milliseconds to hours (integer part).
ms | Milliseconds value. |
Definition at line 151 of file time_conversions.mqh.
|
constexprnoexcept |
Converts a timestamp from milliseconds to hours.
T1 | The type of the output timestamp (default is int). |
T2 | The type of the input timestamp (default is ts_ms_t). |
ts | Timestamp in milliseconds. |
Definition at line 321 of file time_conversions.hpp.
int time_shield::ms_to_min | ( | long | ms | ) |
Convert milliseconds to minutes (integer part).
ms | Milliseconds value. |
Definition at line 105 of file time_conversions.mqh.
|
constexprnoexcept |
Converts a timestamp from milliseconds to minutes.
T1 | The type of the output timestamp (default is int). |
T2 | The type of the input timestamp (default is ts_ms_t). |
ts | Timestamp in milliseconds. |
Definition at line 188 of file time_conversions.hpp.
long time_shield::ms_to_sec | ( | long | ms | ) |
Convert milliseconds to seconds (integer part).
ms | Timestamp in milliseconds. |
Definition at line 80 of file time_conversions.mqh.
|
constexprnoexcept |
Converts a timestamp from milliseconds to seconds.
T1 | The type of the output timestamp (default is ts_t). |
T2 | The type of the input timestamp (default is ts_ms_t). |
ts_ms | Timestamp in milliseconds. |
Definition at line 122 of file time_conversions.hpp.
long time_shield::next_day | ( | long | ts, |
int | days = 1 ) |
Add days to a timestamp without adjusting to start of day.
ts | Timestamp in seconds. |
days | Number of days to add (default 1). |
Definition at line 518 of file time_conversions.mqh.
Calculate the timestamp for a specified number of days in the future.
Adds the given number of days to the provided timestamp, without adjusting to the start of the day.
ts | The current timestamp in seconds. |
days | The number of days to add to the current timestamp (default is 1). |
Definition at line 1768 of file time_conversions.hpp.
long time_shield::next_day_from_unix_day | ( | long | uday | ) |
Alias for start_of_next_day_from_unix_day.
Get start of next day timestamp from UNIX day.
uday | UNIX day value. |
Definition at line 1352 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for start_of_next_day_from_unix_day function.
Converts a UNIX day to a timestamp representing the start of the next day in seconds.
Converts a number of days since the UNIX epoch (January 1, 1970) to the corresponding timestamp in seconds at the start of the next day (00:00:00).
T | The return type of the function (default is ts_t). |
unix_day | The number of days since the UNIX epoch. |
Definition at line 167 of file time_conversion_aliases.hpp.
|
constexprnoexcept |
Alias for start_of_next_day_from_unix_day_ms function.
Converts a UNIX day to a timestamp representing the start of the next day in milliseconds.
Converts a number of days since the UNIX epoch (January 1, 1970) to the corresponding timestamp in milliseconds at the start of the next day (00:00:00.000).
T | The return type of the function (default is ts_ms_t). |
unix_day | The number of days since the UNIX epoch. |
Definition at line 190 of file time_conversion_aliases.hpp.
long time_shield::next_day_ms | ( | long | ts_ms, |
int | days = 1 ) |
Add days to a millisecond timestamp without adjusting to start of day.
ts_ms | Timestamp in milliseconds. |
days | Number of days to add (default 1). |
Definition at line 526 of file time_conversions.mqh.
|
constexprnoexcept |
Calculate the timestamp for a specified number of days in the future (milliseconds).
Adds the given number of days to the provided timestamp, without adjusting to the start of the day.
ts_ms | The current timestamp in milliseconds. |
days | The number of days to add to the current timestamp (default is 1). |
Definition at line 1780 of file time_conversions.hpp.
long time_shield::next_day_start | ( | long | ts, |
int | days = 1 ) |
Alias for start_of_next_day.
Get the timestamp of the start of the day after a specified number of days.
Calculates the timestamp for the beginning of the day after a specified number of days relative to the given timestamp.
ts | The current timestamp in seconds. |
days | The number of days after the current day (default is 1). |
Definition at line 500 of file time_conversions.mqh.
Alias for start_of_next_day function.
Get the timestamp of the start of the day after a specified number of days.
Calculates the timestamp for the beginning of the day after a specified number of days relative to the given timestamp.
ts | The current timestamp in seconds. |
days | The number of days after the current day (default is 1). |
Definition at line 1666 of file time_conversion_aliases.hpp.
long time_shield::next_day_start_ms | ( | long | ts_ms, |
int | days = 1 ) |
Alias for start_of_next_day_ms.
Get the timestamp of the start of the day after a specified number of days.
Calculates the timestamp for the beginning of the day after a specified number of days relative to the given timestamp in milliseconds.
ts_ms | The current timestamp in milliseconds. |
days | The number of days after the current day (default is 1). |
Definition at line 512 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for start_of_next_day_ms function.
Get the timestamp of the start of the day after a specified number of days.
Calculates the timestamp for the beginning of the day after a specified number of days relative to the given timestamp in milliseconds.
ts_ms | The current timestamp in milliseconds. |
days | The number of days after the current day (default is 1). |
Definition at line 1675 of file time_conversion_aliases.hpp.
long time_shield::next_day_unix_day | ( | long | uday | ) |
Alias for start_of_next_day_from_unix_day.
Get start of next day timestamp from UNIX day.
uday | UNIX day value. |
Definition at line 1336 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for start_of_next_day_from_unix_day function.
Converts a UNIX day to a timestamp representing the start of the next day in seconds.
Converts a number of days since the UNIX epoch (January 1, 1970) to the corresponding timestamp in seconds at the start of the next day (00:00:00).
T | The return type of the function (default is ts_t). |
unix_day | The number of days since the UNIX epoch. |
Definition at line 174 of file time_conversion_aliases.hpp.
long time_shield::next_day_unix_day_ms | ( | long | uday | ) |
Alias for start_of_next_day_from_unix_day_ms.
Get start of next day timestamp in ms from UNIX day.
uday | UNIX day value. |
Definition at line 1344 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for start_of_next_day_from_unix_day_ms function.
Converts a UNIX day to a timestamp representing the start of the next day in milliseconds.
Converts a number of days since the UNIX epoch (January 1, 1970) to the corresponding timestamp in milliseconds at the start of the next day (00:00:00.000).
T | The return type of the function (default is ts_ms_t). |
unix_day | The number of days since the UNIX epoch. |
Definition at line 197 of file time_conversion_aliases.hpp.
long time_shield::next_day_unixday | ( | long | uday | ) |
Alias for start_of_next_day_from_unix_day.
Get start of next day timestamp from UNIX day.
uday | UNIX day value. |
Definition at line 1340 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for start_of_next_day_from_unix_day function.
Converts a UNIX day to a timestamp representing the start of the next day in seconds.
Converts a number of days since the UNIX epoch (January 1, 1970) to the corresponding timestamp in seconds at the start of the next day (00:00:00).
T | The return type of the function (default is ts_t). |
unix_day | The number of days since the UNIX epoch. |
Definition at line 181 of file time_conversion_aliases.hpp.
long time_shield::next_day_unixday_ms | ( | long | uday | ) |
Alias for start_of_next_day_from_unix_day_ms.
Get start of next day timestamp in ms from UNIX day.
uday | UNIX day value. |
Definition at line 1348 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for start_of_next_day_from_unix_day_ms function.
Converts a UNIX day to a timestamp representing the start of the next day in milliseconds.
Converts a number of days since the UNIX epoch (January 1, 1970) to the corresponding timestamp in milliseconds at the start of the next day (00:00:00.000).
T | The return type of the function (default is ts_ms_t). |
unix_day | The number of days since the UNIX epoch. |
Definition at line 204 of file time_conversion_aliases.hpp.
int time_shield::ns_of_sec | ( | double | ts | ) |
Get the nanosecond part of a floating-point timestamp.
ts | Timestamp in seconds with fractional part. |
Definition at line 38 of file time_conversions.mqh.
|
constexprnoexcept |
Get the nanosecond part of the second from a floating-point timestamp.
T | Type of the returned value (default is int). |
ts | Timestamp in floating-point seconds. |
Definition at line 31 of file time_conversions.hpp.
int time_shield::num_days_in_month | ( | long | ts | ) |
Alias for num_days_in_month_ts.
Get the number of days in the month of the given timestamp.
This function calculates and returns the number of days in the month of the specified timestamp.
ts | The timestamp to extract month and year from. |
Definition at line 823 of file time_conversions.mqh.
int time_shield::num_days_in_month | ( | long | year, |
int | month ) |
Get the number of days in a month.
year | Year value. |
month | Month value. |
Definition at line 795 of file time_conversions.mqh.
|
constexprnoexcept |
Get the number of days in a month.
This function calculates and returns the number of days in the specified month and year.
year | Year as an integer. |
month | Month as an integer. |
Definition at line 1390 of file time_conversions.hpp.
|
constexprnoexcept |
Alias for num_days_in_month_ts function.
Get the number of days in the month of the given timestamp.
This function calculates and returns the number of days in the month of the specified timestamp.
ts | The timestamp to extract month and year from. |
Definition at line 1593 of file time_conversion_aliases.hpp.
int time_shield::num_days_in_month_ts | ( | long | ts | ) |
Get the number of days in the month of a timestamp.
ts | Timestamp in seconds. |
Definition at line 812 of file time_conversions.mqh.
|
noexcept |
Get the number of days in the month of the given timestamp.
This function calculates and returns the number of days in the month of the specified timestamp.
ts | The timestamp to extract month and year from. |
Definition at line 1409 of file time_conversions.hpp.
int time_shield::num_days_in_year | ( | long | year | ) |
Get number of days in a year.
year | Year value. |
Definition at line 938 of file time_conversions.mqh.
|
constexprnoexcept |
Get the number of days in a given year.
This function calculates and returns the number of days in the specified year.
year | Year. |
Definition at line 1656 of file time_conversions.hpp.
int time_shield::num_days_in_year_ts | ( | long | ts | ) |
Get number of days in the year of the timestamp.
ts | Timestamp in seconds. |
Definition at line 950 of file time_conversions.mqh.
|
constexpr |
Get the number of days in the current year.
This function calculates and returns the number of days in the current year based on the provided timestamp.
ts | Timestamp. |
Definition at line 1670 of file time_conversions.hpp.
long time_shield::previous_day_start | ( | long | ts, |
int | days = 1 ) |
Alias for start_of_prev_day.
Get timestamp of the start of the previous day.
This function returns the timestamp at the start of the previous day.
ts | Timestamp of the current day. |
days | Number of days to go back (default is 1). |
Definition at line 466 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for start_of_prev_day function.
Get timestamp of the start of the previous day.
This function returns the timestamp at the start of the previous day.
ts | Timestamp of the current day. |
days | Number of days to go back (default is 1). |
Definition at line 1635 of file time_conversion_aliases.hpp.
long time_shield::saturday_begin | ( | long | ts | ) |
Alias for start_of_saturday.
Get the timestamp of the start of Saturday.
This function finds the timestamp of the beginning of the day on Saturday, which corresponds to the start of Saturday.
ts | Timestamp (default: current timestamp). |
Definition at line 1113 of file time_conversions.mqh.
|
constexpr |
Alias for start_of_saturday function.
Get the timestamp of the start of Saturday.
This function finds the timestamp of the beginning of the day on Saturday, which corresponds to the start of Saturday.
ts | Timestamp (default: current timestamp). |
Definition at line 1961 of file time_conversion_aliases.hpp.
int time_shield::sec_of_day | ( | int | hour, |
int | min, | ||
int | sec ) |
Get second of day from hours, minutes and seconds.
hour | Hour value. |
min | Minute value. |
sec | Second value. |
Definition at line 1392 of file time_conversions.mqh.
int time_shield::sec_of_day | ( | long | ts | ) |
Get second of day from timestamp.
ts | Timestamp in seconds. |
Definition at line 1376 of file time_conversions.mqh.
|
constexprnoexcept |
Get the second of the day.
This function returns a value between 0 and MAX_SEC_PER_DAY representing the second of the day, given the hour, minute, and second.
T1 | The return type of the function (default is int). |
T2 | The type of the hour, minute, and second parameters (default is int). |
hour | Hour of the day. |
min | Minute of the hour. |
sec | Second of the minute. |
Definition at line 1045 of file time_conversions.hpp.
|
constexprnoexcept |
Get the second of the day.
This function returns a value from 0 to MAX_SEC_PER_DAY representing the second of the day.
T | The return type of the function (default is int). |
ts | Timestamp in seconds (default is current timestamp). |
Definition at line 1018 of file time_conversions.hpp.
int time_shield::sec_of_day_ms | ( | long | ts_ms | ) |
Get second of day from milliseconds timestamp.
ts_ms | Timestamp in milliseconds. |
Definition at line 1383 of file time_conversions.mqh.
|
constexprnoexcept |
Get the second of the day from milliseconds timestamp.
This function returns a value from 0 to MAX_SEC_PER_DAY representing the second of the day, given a timestamp in milliseconds.
T | The return type of the function (default is int). |
ts_ms | Timestamp in milliseconds. |
Definition at line 1030 of file time_conversions.hpp.
|
constexpr |
Get the second of the hour.
This function returns a value between 0 and 3599 representing the second of the hour.
T | The return type of the function (default is int). |
ts | Timestamp in seconds (default is current timestamp). |
Definition at line 1072 of file time_conversions.hpp.
|
constexpr |
Get the second of the minute.
This function returns a value between 0 and 59 representing the second of the minute.
T | The return type of the function (default is int). |
ts | Timestamp in seconds (default is current timestamp). |
Definition at line 1060 of file time_conversions.hpp.
double time_shield::sec_to_fhour | ( | long | sec | ) |
Convert seconds to floating-point hours.
sec | Seconds value. |
Definition at line 179 of file time_conversions.mqh.
|
constexprnoexcept |
Converts a timestamp from seconds to floating-point hours.
T | The type of the input timestamp (default is ts_t). |
ts | Timestamp in seconds. |
Definition at line 397 of file time_conversions.hpp.
double time_shield::sec_to_fmin | ( | long | sec | ) |
Convert seconds to floating-point minutes.
sec | Seconds value. |
Definition at line 133 of file time_conversions.mqh.
|
constexprnoexcept |
Converts a timestamp from seconds to floating-point minutes.
T | The type of the input timestamp (default is ts_t). |
ts | Timestamp in seconds. |
Definition at line 263 of file time_conversions.hpp.
int time_shield::sec_to_hour | ( | long | sec | ) |
Convert seconds to hours (integer part).
sec | Seconds value. |
Definition at line 165 of file time_conversions.mqh.
|
constexprnoexcept |
Converts a timestamp from seconds to hours.
T1 | The type of the output timestamp (default is int). |
T2 | The type of the input timestamp (default is ts_t). |
ts | Timestamp in seconds. |
Definition at line 379 of file time_conversions.hpp.
int time_shield::sec_to_min | ( | long | sec | ) |
Convert seconds to minutes (integer part).
sec | Seconds value. |
Definition at line 119 of file time_conversions.mqh.
|
constexprnoexcept |
Converts a timestamp from seconds to minutes.
T1 | The type of the output timestamp (default is int). |
T2 | The type of the input timestamp (default is ts_t). |
ts | Timestamp in seconds. |
Definition at line 245 of file time_conversions.hpp.
long time_shield::sec_to_ms | ( | double | sec | ) |
Convert seconds to milliseconds.
sec | Timestamp in seconds. |
Definition at line 73 of file time_conversions.mqh.
|
constexprnoexcept |
Converts a timestamp from seconds to milliseconds.
T1 | The type of the output timestamp (default is ts_ms_t). |
T2 | The type of the input timestamp. |
ts | Timestamp in seconds. |
Definition at line 93 of file time_conversions.hpp.
|
constexprnoexcept |
Helper function for converting seconds to milliseconds (integral version).
T | Type of the input timestamp. |
t | Timestamp in seconds. |
tag | std::false_type indicates a non-floating-point type. |
Definition at line 82 of file time_conversions.hpp.
|
constexprnoexcept |
Helper function for converting seconds to milliseconds (floating-point version).
T | Type of the input timestamp. |
t | Timestamp in seconds. |
tag | std::true_type indicates a floating-point type. |
Definition at line 72 of file time_conversions.hpp.
|
constexprnoexcept |
Alias for start_of_day_sec function.
Get the start of the day timestamp in seconds.
This function returns the timestamp at the start of the day in seconds. The function sets the hours, minutes, and seconds to zero.
ts_ms | Timestamp in milliseconds. |
Definition at line 1649 of file time_conversion_aliases.hpp.
long time_shield::start_of_day | ( | long | ts | ) |
Get the start of the day for a timestamp.
ts | Timestamp in seconds. |
Definition at line 448 of file time_conversions.mqh.
|
constexprnoexcept |
Get the start of the day timestamp.
This function returns the timestamp at the start of the day. The function sets the hours, minutes, and seconds to zero.
ts | Timestamp. |
Definition at line 1684 of file time_conversions.hpp.
long time_shield::start_of_day_from_unix_day | ( | long | uday | ) |
Alias for unix_day_to_timestamp.
Convert UNIX day to timestamp in seconds.
uday | UNIX day value. |
Definition at line 1273 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for unix_day_to_timestamp function.
Converts a UNIX day to a timestamp in seconds.
Converts a number of days since the UNIX epoch (January 1, 1970) to the corresponding timestamp in seconds at the start of the specified day.
T | The return type of the function (default is ts_t). |
unix_day | Number of days since the UNIX epoch. |
Definition at line 128 of file time_conversion_aliases.hpp.
long time_shield::start_of_day_from_unix_day_ms | ( | long | uday | ) |
Alias for unix_day_to_timestamp_ms.
Convert UNIX day to timestamp in milliseconds.
uday | UNIX day value. |
Definition at line 1296 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for unix_day_to_timestamp_ms function.
Converts a UNIX day to a timestamp in milliseconds.
Converts a number of days since the UNIX epoch (January 1, 1970) to the corresponding timestamp in milliseconds at the start of the specified day.
T | The return type of the function (default is ts_t). |
unix_day | Number of days since the UNIX epoch. |
Definition at line 158 of file time_conversion_aliases.hpp.
long time_shield::start_of_day_ms | ( | long | ts_ms | ) |
Get the start of the day for a millisecond timestamp.
ts_ms | Timestamp in milliseconds. |
Definition at line 482 of file time_conversions.mqh.
|
constexprnoexcept |
Get the start of the day timestamp in milliseconds.
This function returns the timestamp at the start of the day in milliseconds. The function sets the hours, minutes, seconds, and milliseconds to zero.
ts_ms | Timestamp in milliseconds. |
Definition at line 1724 of file time_conversions.hpp.
long time_shield::start_of_day_sec | ( | long | ts_ms | ) |
Get the start of the day in seconds from milliseconds timestamp.
ts_ms | Timestamp in milliseconds. |
Definition at line 471 of file time_conversions.mqh.
|
constexprnoexcept |
Get the start of the day timestamp in seconds.
This function returns the timestamp at the start of the day in seconds. The function sets the hours, minutes, and seconds to zero.
ts_ms | Timestamp in milliseconds. |
Definition at line 1711 of file time_conversions.hpp.
long time_shield::start_of_hour | ( | long | ts | ) |
Get the start of the hour for a timestamp.
ts | Timestamp in seconds. |
Definition at line 1008 of file time_conversions.mqh.
|
constexprnoexcept |
Get the timestamp at the start of the hour.
This function sets the minute and second to zero.
ts | Timestamp (default: current timestamp). |
Definition at line 1938 of file time_conversions.hpp.
long time_shield::start_of_hour_ms | ( | long | ts_ms | ) |
Get the start of the hour for a millisecond timestamp.
ts_ms | Timestamp in milliseconds. |
Definition at line 1030 of file time_conversions.mqh.
|
constexprnoexcept |
Get the timestamp at the start of the hour. This function sets the minute and second to zero.
ts_ms | Timestamp in milliseconds (default: current timestamp in milliseconds). |
Definition at line 1960 of file time_conversions.hpp.
long time_shield::start_of_hour_sec | ( | long | ts_ms | ) |
Get the start of the hour in seconds from milliseconds timestamp.
ts_ms | Timestamp in milliseconds. |
Definition at line 1019 of file time_conversions.mqh.
|
constexprnoexcept |
Get the timestamp at the start of the hour.
This function sets the minute and second to zero.
ts_ms | Timestamp in milliseconds (default: current timestamp in milliseconds). |
Definition at line 1950 of file time_conversions.hpp.
long time_shield::start_of_min | ( | long | ts | ) |
Get the start of the minute for a timestamp.
ts | Timestamp in seconds. |
Definition at line 1118 of file time_conversions.mqh.
|
constexprnoexcept |
Get the timestamp of the beginning of the minute.
ts | Timestamp (default: current timestamp). |
Definition at line 2055 of file time_conversions.hpp.
long time_shield::start_of_month | ( | long | ts | ) |
Get the timestamp at the start of the month.
ts | Timestamp in seconds. |
Definition at line 962 of file time_conversions.mqh.
|
inline |
Get the timestamp at the start of the current month.
This function returns the timestamp at the start of the current month, setting the day to the first day of the month and the time to 00:00:00.
ts | Timestamp (default is current timestamp) |
Definition at line 1885 of file time_conversions.hpp.
long time_shield::start_of_next_day | ( | long | ts, |
int | days = 1 ) |
Get the start of the next day.
ts | Timestamp in seconds. |
days | Number of days ahead (default 1). |
Definition at line 494 of file time_conversions.mqh.
|
constexprnoexcept |
Get the timestamp of the start of the day after a specified number of days.
Calculates the timestamp for the beginning of the day after a specified number of days relative to the given timestamp.
ts | The current timestamp in seconds. |
days | The number of days after the current day (default is 1). |
Definition at line 1739 of file time_conversions.hpp.
long time_shield::start_of_next_day_from_unix_day | ( | long | uday | ) |
Get start of next day timestamp from UNIX day.
uday | UNIX day value. |
Definition at line 1323 of file time_conversions.mqh.
|
constexprnoexcept |
Converts a UNIX day to a timestamp representing the start of the next day in seconds.
Converts a number of days since the UNIX epoch (January 1, 1970) to the corresponding timestamp in seconds at the start of the next day (00:00:00).
T | The return type of the function (default is ts_t). |
unix_day | The number of days since the UNIX epoch. |
Definition at line 977 of file time_conversions.hpp.
long time_shield::start_of_next_day_from_unix_day_ms | ( | long | uday | ) |
Get start of next day timestamp in ms from UNIX day.
uday | UNIX day value. |
Definition at line 1330 of file time_conversions.mqh.
|
constexprnoexcept |
Converts a UNIX day to a timestamp representing the start of the next day in milliseconds.
Converts a number of days since the UNIX epoch (January 1, 1970) to the corresponding timestamp in milliseconds at the start of the next day (00:00:00.000).
T | The return type of the function (default is ts_ms_t). |
unix_day | The number of days since the UNIX epoch. |
Definition at line 990 of file time_conversions.hpp.
long time_shield::start_of_next_day_ms | ( | long | ts_ms, |
int | days = 1 ) |
Get the start of the next day in milliseconds.
ts_ms | Timestamp in milliseconds. |
days | Number of days ahead (default 1). |
Definition at line 506 of file time_conversions.mqh.
|
constexprnoexcept |
Get the timestamp of the start of the day after a specified number of days.
Calculates the timestamp for the beginning of the day after a specified number of days relative to the given timestamp in milliseconds.
ts_ms | The current timestamp in milliseconds. |
days | The number of days after the current day (default is 1). |
Definition at line 1754 of file time_conversions.hpp.
long time_shield::start_of_period | ( | int | p, |
long | ts ) |
Get the start of a period.
p | Period length in seconds. |
ts | Timestamp (default current). Use time_utils.ts(). |
Definition at line 1159 of file time_conversions.mqh.
|
constexpr |
Get the timestamp of the start of the period.
p | Period duration in seconds. |
ts | Timestamp (default: current timestamp). |
Definition at line 2097 of file time_conversions.hpp.
long time_shield::start_of_prev_day | ( | long | ts, |
int | days = 1 ) |
Get the start of the previous day.
ts | Timestamp in seconds. |
days | Number of days to go back (default 1). |
Definition at line 460 of file time_conversions.mqh.
|
constexprnoexcept |
Get timestamp of the start of the previous day.
This function returns the timestamp at the start of the previous day.
ts | Timestamp of the current day. |
days | Number of days to go back (default is 1). |
Definition at line 1698 of file time_conversions.hpp.
long time_shield::start_of_saturday | ( | long | ts | ) |
Get the start of Saturday for the week of the timestamp.
ts | Timestamp in seconds. |
Definition at line 1107 of file time_conversions.mqh.
|
constexpr |
Get the timestamp of the start of Saturday.
This function finds the timestamp of the beginning of the day on Saturday, which corresponds to the start of Saturday.
ts | Timestamp (default: current timestamp). |
Definition at line 2046 of file time_conversions.hpp.
long time_shield::start_of_week | ( | long | ts | ) |
Get the start of the week (Sunday).
ts | Timestamp in seconds. |
Definition at line 1085 of file time_conversions.mqh.
|
constexpr |
Get the timestamp of the beginning of the week.
This function finds the timestamp of the beginning of the week, which corresponds to the start of Sunday.
ts | Timestamp (default: current timestamp). |
Definition at line 2020 of file time_conversions.hpp.
long time_shield::start_of_year | ( | long | ts | ) |
Get the start of the year for a timestamp.
ts | Timestamp in seconds. |
Definition at line 639 of file time_conversions.mqh.
Get the start of the year timestamp.
This function resets the days, months, hours, minutes, and seconds of the given timestamp to the beginning of the year.
ts | Timestamp. |
Definition at line 1113 of file time_conversions.hpp.
long time_shield::start_of_year_date | ( | long | year | ) |
Get the timestamp for the start of the specified year.
year | Year value. |
Definition at line 680 of file time_conversions.mqh.
|
inline |
Get the timestamp of the start of the year.
This function returns the timestamp at the start of the specified year.
year | Year. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 1190 of file time_conversions.hpp.
long time_shield::start_of_year_date_ms | ( | long | year | ) |
Get the timestamp in milliseconds for the start of the specified year.
year | Year value. |
Definition at line 709 of file time_conversions.mqh.
|
inline |
Get the timestamp in milliseconds of the start of the year.
This function returns the timestamp at the start of the specified year in milliseconds.
year | Year. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 1218 of file time_conversions.hpp.
long time_shield::start_of_year_ms | ( | long | ts_ms | ) |
Get the start of the year in milliseconds.
ts_ms | Timestamp in milliseconds. |
Definition at line 665 of file time_conversions.mqh.
|
inlinenoexcept |
Get the start of the year timestamp in milliseconds.
This function resets the days, months, hours, minutes, and seconds of the given timestamp to the beginning of the year.
ts_ms | Timestamp in milliseconds. |
Definition at line 1176 of file time_conversions.hpp.
|
constexpr |
Alias for tm_to_timestamp.
Converts a std::tm structure to a timestamp.
This function converts a standard C++ std::tm structure to a timestamp, which is the number of seconds since the Unix epoch (January 1, 1970).
timeinfo | Pointer to a std::tm structure containing the date and time information. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 742 of file time_conversion_aliases.hpp.
|
inline |
Alias for dt_to_timestamp function.
Converts a date-time structure to a timestamp.
This function converts a given date and time to a timestamp, which is the number of seconds since the Unix epoch (January 1, 1970).
T | The type of the date-time structure. |
date_time | The date-time structure. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 721 of file time_conversion_aliases.hpp.
Alias for to_timestamp.
This function converts a given date and time to a timestamp, which is the number of seconds since the Unix epoch (January 1, 1970).
If the day
is ≥ 1970 and year
≤ 31, parameters are assumed to be in DD-MM-YYYY order and are automatically reordered.
year | The year value. |
month | The month value. |
day | The day value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 539 of file time_conversion_aliases.hpp.
|
inline |
Alias for to_timestamp.
This function converts a given date and time to a timestamp, which is the number of seconds since the Unix epoch (January 1, 1970).
If the day
is ≥ 1970 and year
≤ 31, parameters are assumed to be in DD-MM-YYYY order and are automatically reordered.
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 559 of file time_conversion_aliases.hpp.
|
inline |
Alias for to_timestamp.
This function converts a given date and time to a timestamp, which is the number of seconds since the Unix epoch (January 1, 1970).
If the day
is ≥ 1970 and year
≤ 31, parameters are assumed to be in DD-MM-YYYY order and are automatically reordered.
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value. |
min | The minute value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 580 of file time_conversion_aliases.hpp.
|
inline |
Alias for to_timestamp.
This function converts a given date and time to a timestamp, which is the number of seconds since the Unix epoch (January 1, 1970).
If the day
is ≥ 1970 and year
≤ 31, parameters are assumed to be in DD-MM-YYYY order and are automatically reordered.
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value. |
min | The minute value. |
sec | The second value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 602 of file time_conversion_aliases.hpp.
|
inline |
Alias for tm_to_timestamp_ms function.
Converts a std::tm structure to a timestamp in milliseconds.
This function converts a given std::tm structure to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
timeinfo | Pointer to a std::tm structure containing the date and time information. |
Definition at line 1310 of file time_conversion_aliases.hpp.
|
inline |
Alias for dt_to_timestamp_ms function.
Converts a date-time structure to a timestamp in milliseconds.
This function converts a given date-time structure to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
T | The type of the date-time structure. |
date_time | The date-time structure. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 1280 of file time_conversion_aliases.hpp.
Alias for to_timestamp_ms.
This function converts a given date and time to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
T1 | The type of the year parameter (default is int64_t). |
T2 | The type of the other date and time parameters (default is int). |
year | The year value. |
month | The month value. |
day | The day value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 1070 of file time_conversion_aliases.hpp.
Alias for to_timestamp_ms.
This function converts a given date and time to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
T1 | The type of the year parameter (default is int64_t). |
T2 | The type of the other date and time parameters (default is int). |
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 1088 of file time_conversion_aliases.hpp.
Alias for to_timestamp_ms.
This function converts a given date and time to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
T1 | The type of the year parameter (default is int64_t). |
T2 | The type of the other date and time parameters (default is int). |
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value. |
min | The minute value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 1107 of file time_conversion_aliases.hpp.
|
constexpr |
Alias for to_timestamp_ms.
This function converts a given date and time to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
T1 | The type of the year parameter (default is int64_t). |
T2 | The type of the other date and time parameters (default is int). |
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value. |
min | The minute value. |
sec | The second value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 1127 of file time_conversion_aliases.hpp.
|
constexpr |
Alias for to_timestamp_ms.
This function converts a given date and time to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
T1 | The type of the year parameter (default is int64_t). |
T2 | The type of the other date and time parameters (default is int). |
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value. |
min | The minute value. |
sec | The second value. |
ms | The millisecond value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 1148 of file time_conversion_aliases.hpp.
|
inline |
Converts a std::tm structure to a floating-point timestamp.
This function converts a given std::tm structure to a floating-point timestamp, which is the number of seconds (with fractional milliseconds) since the Unix epoch (January 1, 1970).
timeinfo | Pointer to the std::tm structure containing the date and time. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 834 of file time_conversions.hpp.
|
inline |
Converts a std::tm structure to a timestamp.
This function converts a standard C++ std::tm structure to a timestamp, which is the number of seconds since the Unix epoch (January 1, 1970).
timeinfo | Pointer to a std::tm structure containing the date and time information. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 696 of file time_conversions.hpp.
|
inline |
Converts a std::tm structure to a timestamp in milliseconds.
This function converts a given std::tm structure to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
timeinfo | Pointer to a std::tm structure containing the date and time information. |
Definition at line 765 of file time_conversions.hpp.
DateTimeStruct time_shield::to_date_time | ( | long | ts | ) |
Convert a timestamp to a DateTimeStruct.
ts | Timestamp in seconds since UNIX epoch. |
Definition at line 274 of file time_conversions.mqh.
T1 time_shield::to_date_time | ( | T2 | ts | ) |
Converts a timestamp to a date-time structure.
This function converts a timestamp (usually an integer representing seconds since epoch) to a custom date-time structure. The default type for the timestamp is int64_t.
T1 | The date-time structure type to be returned. |
T2 | The type of the timestamp (default is int64_t). |
ts | The timestamp to be converted. |
Definition at line 463 of file time_conversions.hpp.
MqlDateTime time_shield::to_date_time_mql | ( | long | ts | ) |
Convert a timestamp to the standard MqlDateTime structure.
ts | Timestamp in seconds since UNIX epoch. |
Definition at line 295 of file time_conversions.mqh.
DateTimeStruct time_shield::to_date_time_ms | ( | long | ts_ms | ) |
Convert a timestamp in milliseconds to DateTimeStruct.
ts_ms | Timestamp in milliseconds since UNIX epoch. |
Definition at line 308 of file time_conversions.mqh.
|
inline |
Converts a timestamp in milliseconds to a date-time structure with milliseconds.
T | The type of the date-time structure to return. |
ts | The timestamp in milliseconds to convert. |
Definition at line 568 of file time_conversions.hpp.
DateTimeStruct time_shield::to_dt | ( | long | ts | ) |
Alias for to_date_time.
Converts a timestamp to a date-time structure.
This function converts a timestamp (usually an integer representing seconds since epoch) to a custom date-time structure. The default type for the timestamp is int64_t.
T1 | The date-time structure type to be returned. |
T2 | The type of the timestamp (default is int64_t). |
ts | The timestamp to be converted. |
Definition at line 290 of file time_conversions.mqh.
T1 time_shield::to_dt | ( | T2 | ts | ) |
Alias for to_date_time function.
Converts a timestamp to a date-time structure.
This function converts a timestamp (usually an integer representing seconds since epoch) to a custom date-time structure. The default type for the timestamp is int64_t.
T1 | The date-time structure type to be returned. |
T2 | The type of the timestamp (default is int64_t). |
ts | The timestamp to be converted. |
Definition at line 246 of file time_conversion_aliases.hpp.
DateTimeStruct time_shield::to_dt_ms | ( | long | ts_ms | ) |
Alias for to_date_time_ms.
Convert a timestamp in milliseconds to DateTimeStruct.
ts_ms | Timestamp in milliseconds since UNIX epoch. |
Definition at line 316 of file time_conversions.mqh.
|
inline |
Alias for to_date_time_ms function.
Converts a timestamp in milliseconds to a date-time structure with milliseconds.
T | The type of the date-time structure to return. |
ts | The timestamp in milliseconds to convert. |
Definition at line 264 of file time_conversion_aliases.hpp.
T1 time_shield::to_dt_struct | ( | T2 | ts | ) |
Alias for to_date_time function.
Converts a timestamp to a date-time structure.
This function converts a timestamp (usually an integer representing seconds since epoch) to a custom date-time structure. The default type for the timestamp is int64_t.
T1 | The date-time structure type to be returned. |
T2 | The type of the timestamp (default is int64_t). |
ts | The timestamp to be converted. |
Definition at line 254 of file time_conversion_aliases.hpp.
|
inline |
Alias for to_date_time_ms function.
Converts a timestamp in milliseconds to a date-time structure with milliseconds.
T | The type of the date-time structure to return. |
ts | The timestamp in milliseconds to convert. |
Definition at line 272 of file time_conversion_aliases.hpp.
double time_shield::to_ftimestamp | ( | const DateTimeStruct & | dt | ) |
Alias for dt_to_ftimestamp.
Convert a DateTimeStruct to floating-point timestamp.
dt | Structure with date and time fields. |
Definition at line 435 of file time_conversions.mqh.
double time_shield::to_ftimestamp | ( | const MqlDateTime & | dt | ) |
Alias for dt_to_ftimestamp.
Convert an MqlDateTime structure to floating-point timestamp.
dt | Standard MqlDateTime structure. |
Definition at line 439 of file time_conversions.mqh.
|
constexpr |
Alias for tm_to_ftimestamp.
Converts a std::tm structure to a floating-point timestamp.
This function converts a given std::tm structure to a floating-point timestamp, which is the number of seconds (with fractional milliseconds) since the Unix epoch (January 1, 1970).
timeinfo | Pointer to the std::tm structure containing the date and time. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 1428 of file time_conversion_aliases.hpp.
|
constexpr |
Alias for dt_to_ftimestamp.
Converts a date-time structure to a floating-point timestamp.
This function converts a given date and time structure to a floating-point timestamp, which is the number of seconds (with fractional milliseconds) since the Unix epoch (January 1, 1970).
T | The type of the date-time structure. |
date_time | The date-time structure containing year, month, day, hour, minute, second, and millisecond fields. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 1395 of file time_conversion_aliases.hpp.
|
inline |
Converts a date and time to a floating-point timestamp.
This function converts a given date and time to a floating-point timestamp, which is the number of seconds (with fractional milliseconds) since the Unix epoch (January 1, 1970).
T1 | The type of the year parameter (default is year_t). |
T2 | The type of the month, day, hour, minute, and second parameters (default is int). |
T3 | The type of the millisecond parameter (default is int). |
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value (default is 0). |
min | The minute value (default is 0). |
sec | The second value (default is 0). |
ms | The millisecond value (default is 0). |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 791 of file time_conversions.hpp.
|
constexpr |
Alias for tm_to_ftimestamp.
Converts a std::tm structure to a floating-point timestamp.
This function converts a given std::tm structure to a floating-point timestamp, which is the number of seconds (with fractional milliseconds) since the Unix epoch (January 1, 1970).
timeinfo | Pointer to the std::tm structure containing the date and time. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 1435 of file time_conversion_aliases.hpp.
|
constexpr |
Alias for dt_to_ftimestamp.
Converts a date-time structure to a floating-point timestamp.
This function converts a given date and time structure to a floating-point timestamp, which is the number of seconds (with fractional milliseconds) since the Unix epoch (January 1, 1970).
T | The type of the date-time structure. |
date_time | The date-time structure containing year, month, day, hour, minute, second, and millisecond fields. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 1403 of file time_conversion_aliases.hpp.
|
constexpr |
Alias for to_ftimestamp.
This function converts a given date and time to a floating-point timestamp, which is the number of seconds (with fractional milliseconds) since the Unix epoch (January 1, 1970).
T1 | The type of the year parameter (default is year_t). |
T2 | The type of the month, day, hour, minute, and second parameters (default is int). |
T3 | The type of the millisecond parameter (default is int). |
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value (default is 0). |
min | The minute value (default is 0). |
sec | The second value (default is 0). |
ms | The millisecond value (default is 0). |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 1337 of file time_conversion_aliases.hpp.
MqlDateTime time_shield::to_mql_dt | ( | long | ts | ) |
Alias for to_date_time_mql.
Convert a timestamp to the standard MqlDateTime structure.
ts | Timestamp in seconds since UNIX epoch. |
Definition at line 303 of file time_conversions.mqh.
TimeZoneStruct time_shield::to_time_zone | ( | int | offset | ) |
Convert an integer offset to a TimeZoneStruct.
offset | Offset in seconds. |
Definition at line 1399 of file time_conversions.mqh.
|
inline |
Converts an integer to a time zone structure.
T | The type of the time zone structure (default is TimeZoneStruct). |
offset | The integer to convert. |
The function assumes that the type T has members hour
, min
, and is_positive
.
Definition at line 2120 of file time_conversions.hpp.
long time_shield::to_timestamp | ( | const DateTimeStruct & | dt | ) |
Alias for dt_to_timestamp.
Convert a DateTimeStruct to timestamp.
dt | Structure with date and time fields. |
Definition at line 341 of file time_conversions.mqh.
long time_shield::to_timestamp | ( | const MqlDateTime & | dt | ) |
Alias for dt_to_timestamp taking MqlDateTime.
Convert an MqlDateTime structure to timestamp.
dt | Standard MqlDateTime structure. |
Definition at line 345 of file time_conversions.mqh.
|
constexpr |
Alias for tm_to_timestamp.
Converts a std::tm structure to a timestamp.
This function converts a standard C++ std::tm structure to a timestamp, which is the number of seconds since the Unix epoch (January 1, 1970).
timeinfo | Pointer to a std::tm structure containing the date and time information. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 766 of file time_conversion_aliases.hpp.
|
inline |
Alias for dt_to_timestamp function.
Converts a date-time structure to a timestamp.
This function converts a given date and time to a timestamp, which is the number of seconds since the Unix epoch (January 1, 1970).
T | The type of the date-time structure. |
date_time | The date-time structure. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 694 of file time_conversion_aliases.hpp.
long time_shield::to_timestamp | ( | long | year, |
int | mon, | ||
int | day, | ||
int | hour = 0, | ||
int | min = 0, | ||
int | sec = 0 ) |
Convert date and time values to a timestamp.
year | Year value. |
mon | Month value. |
day | Day value. |
hour | Hour value. |
min | Minute value. |
sec | Second value. |
Definition at line 355 of file time_conversions.mqh.
|
inline |
Converts a date and time to a timestamp.
This function converts a given date and time to a timestamp, which is the number of seconds since the Unix epoch (January 1, 1970).
If the day
is ≥ 1970 and year
≤ 31, parameters are assumed to be in DD-MM-YYYY order and are automatically reordered.
T1 | The type of the year parameter (default is int64_t). |
T2 | The type of the other date and time parameters (default is int). |
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value (default is 0). |
min | The minute value (default is 0). |
sec | The second value (default is 0). |
std::invalid_argument | if the date-time combination is invalid. |
ts(...)
get_ts(...)
get_timestamp(...)
timestamp(...)
to_ts(...)
These aliases are macro-generated and behave identically to to_timestamp
.
Definition at line 607 of file time_conversions.hpp.
long time_shield::to_timestamp_ms | ( | const DateTimeStruct & | dt | ) |
Alias for dt_to_timestamp_ms.
Convert a DateTimeStruct to a timestamp in milliseconds.
dt | Structure with date and time fields. |
Definition at line 413 of file time_conversions.mqh.
long time_shield::to_timestamp_ms | ( | const MqlDateTime & | dt | ) |
Alias for dt_to_timestamp_ms.
Convert an MqlDateTime structure to a timestamp in milliseconds.
dt | Standard MqlDateTime structure. |
Definition at line 417 of file time_conversions.mqh.
|
inline |
Alias for tm_to_timestamp_ms function.
Converts a std::tm structure to a timestamp in milliseconds.
This function converts a given std::tm structure to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
timeinfo | Pointer to a std::tm structure containing the date and time information. |
Definition at line 1289 of file time_conversion_aliases.hpp.
|
inline |
Alias for dt_to_timestamp_ms function.
Converts a date-time structure to a timestamp in milliseconds.
This function converts a given date-time structure to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
T | The type of the date-time structure. |
date_time | The date-time structure. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 1253 of file time_conversion_aliases.hpp.
long time_shield::to_timestamp_ms | ( | long | year, |
int | mon, | ||
int | day, | ||
int | hour = 0, | ||
int | min = 0, | ||
int | sec = 0, | ||
int | ms = 0 ) |
Convert date and time values to a timestamp in milliseconds.
year | Year value. |
mon | Month value. |
day | Day value. |
hour | Hour value. |
min | Minute value. |
sec | Second value. |
ms | Millisecond value. |
Definition at line 381 of file time_conversions.mqh.
|
inline |
Converts a date and time to a timestamp in milliseconds.
This function converts a given date and time to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
T1 | The type of the year parameter (default is int64_t). |
T2 | The type of the other date and time parameters (default is int). |
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value (default is 0). |
min | The minute value (default is 0). |
sec | The second value (default is 0). |
ms | The millisecond value (default is 0). |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 726 of file time_conversions.hpp.
|
constexpr |
Alias for tm_to_timestamp.
Converts a std::tm structure to a timestamp.
This function converts a standard C++ std::tm structure to a timestamp, which is the number of seconds since the Unix epoch (January 1, 1970).
timeinfo | Pointer to a std::tm structure containing the date and time information. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 754 of file time_conversion_aliases.hpp.
|
inline |
Alias for dt_to_timestamp function.
Converts a date-time structure to a timestamp.
This function converts a given date and time to a timestamp, which is the number of seconds since the Unix epoch (January 1, 1970).
T | The type of the date-time structure. |
date_time | The date-time structure. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 703 of file time_conversion_aliases.hpp.
long time_shield::to_ts | ( | long | year, |
int | mon, | ||
int | day, | ||
int | hour = 0, | ||
int | min = 0, | ||
int | sec = 0 ) |
Alias for to_timestamp with explicit date fields.
Convert date and time values to a timestamp.
year | Year value. |
mon | Month value. |
day | Day value. |
hour | Hour value. |
min | Minute value. |
sec | Second value. |
Definition at line 368 of file time_conversions.mqh.
Alias for to_timestamp.
This function converts a given date and time to a timestamp, which is the number of seconds since the Unix epoch (January 1, 1970).
If the day
is ≥ 1970 and year
≤ 31, parameters are assumed to be in DD-MM-YYYY order and are automatically reordered.
year | The year value. |
month | The month value. |
day | The day value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 621 of file time_conversion_aliases.hpp.
Alias for to_timestamp.
This function converts a given date and time to a timestamp, which is the number of seconds since the Unix epoch (January 1, 1970).
If the day
is ≥ 1970 and year
≤ 31, parameters are assumed to be in DD-MM-YYYY order and are automatically reordered.
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 641 of file time_conversion_aliases.hpp.
|
inline |
Alias for to_timestamp.
This function converts a given date and time to a timestamp, which is the number of seconds since the Unix epoch (January 1, 1970).
If the day
is ≥ 1970 and year
≤ 31, parameters are assumed to be in DD-MM-YYYY order and are automatically reordered.
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value. |
min | The minute value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 662 of file time_conversion_aliases.hpp.
|
inline |
Alias for to_timestamp.
This function converts a given date and time to a timestamp, which is the number of seconds since the Unix epoch (January 1, 1970).
If the day
is ≥ 1970 and year
≤ 31, parameters are assumed to be in DD-MM-YYYY order and are automatically reordered.
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value. |
min | The minute value. |
sec | The second value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 684 of file time_conversion_aliases.hpp.
|
inline |
Alias for tm_to_timestamp_ms function.
Converts a std::tm structure to a timestamp in milliseconds.
This function converts a given std::tm structure to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
timeinfo | Pointer to a std::tm structure containing the date and time information. |
Definition at line 1296 of file time_conversion_aliases.hpp.
|
inline |
Alias for dt_to_timestamp_ms function.
Converts a date-time structure to a timestamp in milliseconds.
This function converts a given date-time structure to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
T | The type of the date-time structure. |
date_time | The date-time structure. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 1262 of file time_conversion_aliases.hpp.
long time_shield::to_ts_ms | ( | long | year, |
int | mon, | ||
int | day, | ||
int | hour = 0, | ||
int | min = 0, | ||
int | sec = 0, | ||
int | ms = 0 ) |
Alias for to_timestamp_ms.
Convert date and time values to a timestamp in milliseconds.
year | Year value. |
mon | Month value. |
day | Day value. |
hour | Hour value. |
min | Minute value. |
sec | Second value. |
ms | Millisecond value. |
Definition at line 387 of file time_conversions.mqh.
Alias for to_timestamp_ms.
This function converts a given date and time to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
T1 | The type of the year parameter (default is int64_t). |
T2 | The type of the other date and time parameters (default is int). |
year | The year value. |
month | The month value. |
day | The day value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 1165 of file time_conversion_aliases.hpp.
Alias for to_timestamp_ms.
This function converts a given date and time to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
T1 | The type of the year parameter (default is int64_t). |
T2 | The type of the other date and time parameters (default is int). |
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 1183 of file time_conversion_aliases.hpp.
Alias for to_timestamp_ms.
This function converts a given date and time to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
T1 | The type of the year parameter (default is int64_t). |
T2 | The type of the other date and time parameters (default is int). |
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value. |
min | The minute value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 1202 of file time_conversion_aliases.hpp.
|
constexpr |
Alias for to_timestamp_ms.
This function converts a given date and time to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
T1 | The type of the year parameter (default is int64_t). |
T2 | The type of the other date and time parameters (default is int). |
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value. |
min | The minute value. |
sec | The second value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 1222 of file time_conversion_aliases.hpp.
|
constexpr |
Alias for to_timestamp_ms.
This function converts a given date and time to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
T1 | The type of the year parameter (default is int64_t). |
T2 | The type of the other date and time parameters (default is int). |
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value. |
min | The minute value. |
sec | The second value. |
ms | The millisecond value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 1243 of file time_conversion_aliases.hpp.
TimeZoneStruct time_shield::to_tz_struct | ( | int | offset | ) |
Alias for to_time_zone.
Converts an integer to a time zone structure.
T | The type of the time zone structure (default is TimeZoneStruct). |
offset | The integer to convert. |
The function assumes that the type T has members hour
, min
, and is_positive
.
Definition at line 1405 of file time_conversions.mqh.
long time_shield::to_unix_min | ( | long | ts | ) |
Alias for get_unix_min.
Get UNIX minute.
This function returns the number of minutes elapsed since the UNIX epoch.
T | The return type of the function (default is int64_t). |
ts | Timestamp in seconds (default is current timestamp). |
Definition at line 1367 of file time_conversions.mqh.
|
constexpr |
Alias for get_unix_min function.
Get UNIX minute.
This function returns the number of minutes elapsed since the UNIX epoch.
T | The return type of the function (default is int64_t). |
ts | Timestamp in seconds (default is current timestamp). |
Definition at line 220 of file time_conversion_aliases.hpp.
long time_shield::to_unix_year | ( | long | ts | ) |
Alias for get_unix_year function.
Converts a UNIX timestamp to a year.
T | The type of the year (default is year_t). |
ts | UNIX timestamp. |
Definition at line 235 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for get_unix_year function.
Converts a UNIX timestamp to a year.
T | The type of the year (default is year_t). |
ts | UNIX timestamp. |
Definition at line 30 of file time_conversion_aliases.hpp.
long time_shield::to_year | ( | long | ts | ) |
Alias for get_year.
Get the year from the timestamp.
This function returns the year of the specified timestamp in seconds since the Unix epoch.
T | The return type of the function (default is year_t). |
ts | Timestamp in seconds (default is current timestamp). |
Definition at line 250 of file time_conversions.mqh.
|
inline |
Alias for get_year function.
Get the year from the timestamp.
This function returns the year of the specified timestamp in seconds since the Unix epoch.
T | The return type of the function (default is year_t). |
ts | Timestamp in seconds (default is current timestamp). |
Definition at line 1481 of file time_conversion_aliases.hpp.
long time_shield::to_year_ms | ( | long | ts_ms | ) |
Alias for get_year_ms.
Get the year from the timestamp in milliseconds.
This function returns the year of the specified timestamp in milliseconds since the Unix epoch.
T | The return type of the function (default is year_t). |
ts_ms | Timestamp in milliseconds (default is current timestamp). |
Definition at line 265 of file time_conversions.mqh.
|
inline |
Alias for get_year_ms function.
Get the year from the timestamp in milliseconds.
This function returns the year of the specified timestamp in milliseconds since the Unix epoch.
T | The return type of the function (default is year_t). |
ts_ms | Timestamp in milliseconds (default is current timestamp). |
Definition at line 1497 of file time_conversion_aliases.hpp.
|
constexpr |
Alias for tm_to_timestamp.
Converts a std::tm structure to a timestamp.
This function converts a standard C++ std::tm structure to a timestamp, which is the number of seconds since the Unix epoch (January 1, 1970).
timeinfo | Pointer to a std::tm structure containing the date and time information. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 730 of file time_conversion_aliases.hpp.
|
inline |
Alias for dt_to_timestamp function.
Converts a date-time structure to a timestamp.
This function converts a given date and time to a timestamp, which is the number of seconds since the Unix epoch (January 1, 1970).
T | The type of the date-time structure. |
date_time | The date-time structure. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 712 of file time_conversion_aliases.hpp.
Alias for to_timestamp.
This function converts a given date and time to a timestamp, which is the number of seconds since the Unix epoch (January 1, 1970).
If the day
is ≥ 1970 and year
≤ 31, parameters are assumed to be in DD-MM-YYYY order and are automatically reordered.
year | The year value. |
month | The month value. |
day | The day value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 293 of file time_conversion_aliases.hpp.
Alias for to_timestamp.
This function converts a given date and time to a timestamp, which is the number of seconds since the Unix epoch (January 1, 1970).
If the day
is ≥ 1970 and year
≤ 31, parameters are assumed to be in DD-MM-YYYY order and are automatically reordered.
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 313 of file time_conversion_aliases.hpp.
|
inline |
Alias for to_timestamp.
This function converts a given date and time to a timestamp, which is the number of seconds since the Unix epoch (January 1, 1970).
If the day
is ≥ 1970 and year
≤ 31, parameters are assumed to be in DD-MM-YYYY order and are automatically reordered.
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value. |
min | The minute value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 334 of file time_conversion_aliases.hpp.
|
inline |
Alias for to_timestamp.
This function converts a given date and time to a timestamp, which is the number of seconds since the Unix epoch (January 1, 1970).
If the day
is ≥ 1970 and year
≤ 31, parameters are assumed to be in DD-MM-YYYY order and are automatically reordered.
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value. |
min | The minute value. |
sec | The second value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 356 of file time_conversion_aliases.hpp.
|
constexpr |
Alias for tm_to_timestamp.
Converts a std::tm structure to a timestamp.
This function converts a standard C++ std::tm structure to a timestamp, which is the number of seconds since the Unix epoch (January 1, 1970).
timeinfo | Pointer to a std::tm structure containing the date and time information. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 760 of file time_conversion_aliases.hpp.
|
inline |
Alias for tm_to_timestamp_ms function.
Converts a std::tm structure to a timestamp in milliseconds.
This function converts a given std::tm structure to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
timeinfo | Pointer to a std::tm structure containing the date and time information. |
Definition at line 1303 of file time_conversion_aliases.hpp.
|
inline |
Alias for dt_to_timestamp_ms function.
Converts a date-time structure to a timestamp in milliseconds.
This function converts a given date-time structure to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
T | The type of the date-time structure. |
date_time | The date-time structure. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 1271 of file time_conversion_aliases.hpp.
long time_shield::ts_ms | ( | long | year, |
int | mon, | ||
int | day, | ||
int | hour = 0, | ||
int | min = 0, | ||
int | sec = 0, | ||
int | ms = 0 ) |
Alias for to_timestamp_ms.
Convert date and time values to a timestamp in milliseconds.
year | Year value. |
mon | Month value. |
day | Day value. |
hour | Hour value. |
min | Minute value. |
sec | Second value. |
ms | Millisecond value. |
Definition at line 393 of file time_conversions.mqh.
Alias for to_timestamp_ms.
This function converts a given date and time to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
T1 | The type of the year parameter (default is int64_t). |
T2 | The type of the other date and time parameters (default is int). |
year | The year value. |
month | The month value. |
day | The day value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 785 of file time_conversion_aliases.hpp.
Alias for to_timestamp_ms.
This function converts a given date and time to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
T1 | The type of the year parameter (default is int64_t). |
T2 | The type of the other date and time parameters (default is int). |
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 803 of file time_conversion_aliases.hpp.
Alias for to_timestamp_ms.
This function converts a given date and time to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
T1 | The type of the year parameter (default is int64_t). |
T2 | The type of the other date and time parameters (default is int). |
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value. |
min | The minute value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 822 of file time_conversion_aliases.hpp.
|
constexpr |
Alias for to_timestamp_ms.
This function converts a given date and time to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
T1 | The type of the year parameter (default is int64_t). |
T2 | The type of the other date and time parameters (default is int). |
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value. |
min | The minute value. |
sec | The second value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 842 of file time_conversion_aliases.hpp.
|
constexpr |
Alias for to_timestamp_ms.
This function converts a given date and time to a timestamp in milliseconds, which is the number of milliseconds since the Unix epoch (January 1, 1970).
T1 | The type of the year parameter (default is int64_t). |
T2 | The type of the other date and time parameters (default is int). |
year | The year value. |
month | The month value. |
day | The day value. |
hour | The hour value. |
min | The minute value. |
sec | The second value. |
ms | The millisecond value. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 863 of file time_conversion_aliases.hpp.
long time_shield::uday | ( | long | ts | ) |
Alias for get_unix_day.
Get UNIX day.
This function returns the number of days elapsed since the UNIX epoch.
T | The return type of the function (default is unixday_t). |
ts | Timestamp in seconds (default is current timestamp). |
Definition at line 1211 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for get_unix_day function.
Get UNIX day.
This function returns the number of days elapsed since the UNIX epoch.
T | The return type of the function (default is unixday_t). |
ts | Timestamp in seconds (default is current timestamp). |
Definition at line 64 of file time_conversion_aliases.hpp.
long time_shield::uday_ms | ( | long | ts_ms | ) |
Alias for get_unix_day_ms.
Get UNIX day from milliseconds timestamp.
ts_ms | Timestamp in milliseconds. |
Definition at line 1250 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for get_unix_day_ms function.
Get UNIX day from milliseconds timestamp.
This function returns the number of days elapsed since the UNIX epoch, given a timestamp in milliseconds.
T | The return type of the function (default is unixday_t). |
t_ms | Timestamp in milliseconds (default is current timestamp in milliseconds). |
Definition at line 98 of file time_conversion_aliases.hpp.
long time_shield::uday_to_ts | ( | long | uday | ) |
Alias for unix_day_to_timestamp.
Convert UNIX day to timestamp in seconds.
uday | UNIX day value. |
Definition at line 1269 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for unix_day_to_timestamp function.
Converts a UNIX day to a timestamp in seconds.
Converts a number of days since the UNIX epoch (January 1, 1970) to the corresponding timestamp in seconds at the start of the specified day.
T | The return type of the function (default is ts_t). |
unix_day | Number of days since the UNIX epoch. |
Definition at line 121 of file time_conversion_aliases.hpp.
long time_shield::uday_to_ts_ms | ( | long | uday | ) |
Alias for unix_day_to_timestamp_ms.
Convert UNIX day to timestamp in milliseconds.
uday | UNIX day value. |
Definition at line 1292 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for unix_day_to_timestamp_ms function.
Converts a UNIX day to a timestamp in milliseconds.
Converts a number of days since the UNIX epoch (January 1, 1970) to the corresponding timestamp in milliseconds at the start of the specified day.
T | The return type of the function (default is ts_t). |
unix_day | Number of days since the UNIX epoch. |
Definition at line 151 of file time_conversion_aliases.hpp.
long time_shield::umin | ( | long | ts | ) |
Alias for get_unix_min.
Get UNIX minute.
This function returns the number of minutes elapsed since the UNIX epoch.
T | The return type of the function (default is int64_t). |
ts | Timestamp in seconds (default is current timestamp). |
Definition at line 1371 of file time_conversions.mqh.
|
constexpr |
Alias for get_unix_min function.
Get UNIX minute.
This function returns the number of minutes elapsed since the UNIX epoch.
T | The return type of the function (default is int64_t). |
ts | Timestamp in seconds (default is current timestamp). |
Definition at line 227 of file time_conversion_aliases.hpp.
long time_shield::unix_day | ( | long | ts | ) |
Alias for get_unix_day.
Get UNIX day.
This function returns the number of days elapsed since the UNIX epoch.
T | The return type of the function (default is unixday_t). |
ts | Timestamp in seconds (default is current timestamp). |
Definition at line 1199 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for get_unix_day function.
Get UNIX day.
This function returns the number of days elapsed since the UNIX epoch.
T | The return type of the function (default is unixday_t). |
ts | Timestamp in seconds (default is current timestamp). |
Definition at line 48 of file time_conversion_aliases.hpp.
long time_shield::unix_day_ms | ( | long | ts_ms | ) |
Alias for get_unix_day_ms.
Get UNIX day from milliseconds timestamp.
ts_ms | Timestamp in milliseconds. |
Definition at line 1238 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for get_unix_day_ms function.
Get UNIX day from milliseconds timestamp.
This function returns the number of days elapsed since the UNIX epoch, given a timestamp in milliseconds.
T | The return type of the function (default is unixday_t). |
t_ms | Timestamp in milliseconds (default is current timestamp in milliseconds). |
Definition at line 82 of file time_conversion_aliases.hpp.
long time_shield::unix_day_to_timestamp | ( | long | uday | ) |
Convert UNIX day to timestamp in seconds.
uday | UNIX day value. |
Definition at line 1255 of file time_conversions.mqh.
|
constexprnoexcept |
Converts a UNIX day to a timestamp in seconds.
Converts a number of days since the UNIX epoch (January 1, 1970) to the corresponding timestamp in seconds at the start of the specified day.
T | The return type of the function (default is ts_t). |
unix_day | Number of days since the UNIX epoch. |
Definition at line 921 of file time_conversions.hpp.
long time_shield::unix_day_to_timestamp_ms | ( | long | uday | ) |
Convert UNIX day to timestamp in milliseconds.
uday | UNIX day value. |
Definition at line 1278 of file time_conversions.mqh.
|
constexprnoexcept |
Converts a UNIX day to a timestamp in milliseconds.
Converts a number of days since the UNIX epoch (January 1, 1970) to the corresponding timestamp in milliseconds at the start of the specified day.
T | The return type of the function (default is ts_t). |
unix_day | Number of days since the UNIX epoch. |
Definition at line 936 of file time_conversions.hpp.
long time_shield::unix_day_to_ts | ( | long | uday | ) |
Alias for unix_day_to_timestamp.
Convert UNIX day to timestamp in seconds.
uday | UNIX day value. |
Definition at line 1261 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for unix_day_to_timestamp function.
Converts a UNIX day to a timestamp in seconds.
Converts a number of days since the UNIX epoch (January 1, 1970) to the corresponding timestamp in seconds at the start of the specified day.
T | The return type of the function (default is ts_t). |
unix_day | Number of days since the UNIX epoch. |
Definition at line 107 of file time_conversion_aliases.hpp.
long time_shield::unix_day_to_ts_ms | ( | long | uday | ) |
Alias for unix_day_to_timestamp_ms.
Convert UNIX day to timestamp in milliseconds.
uday | UNIX day value. |
Definition at line 1284 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for unix_day_to_timestamp_ms function.
Converts a UNIX day to a timestamp in milliseconds.
Converts a number of days since the UNIX epoch (January 1, 1970) to the corresponding timestamp in milliseconds at the start of the specified day.
T | The return type of the function (default is ts_t). |
unix_day | Number of days since the UNIX epoch. |
Definition at line 137 of file time_conversion_aliases.hpp.
long time_shield::unix_min | ( | long | ts | ) |
Alias for get_unix_min.
Get UNIX minute.
This function returns the number of minutes elapsed since the UNIX epoch.
T | The return type of the function (default is int64_t). |
ts | Timestamp in seconds (default is current timestamp). |
Definition at line 1363 of file time_conversions.mqh.
|
constexpr |
Alias for get_unix_min function.
Get UNIX minute.
This function returns the number of minutes elapsed since the UNIX epoch.
T | The return type of the function (default is int64_t). |
ts | Timestamp in seconds (default is current timestamp). |
Definition at line 213 of file time_conversion_aliases.hpp.
long time_shield::unix_year | ( | long | ts | ) |
Alias for get_unix_year function.
Converts a UNIX timestamp to a year.
T | The type of the year (default is year_t). |
ts | UNIX timestamp. |
Definition at line 231 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for get_unix_year function.
Converts a UNIX timestamp to a year.
T | The type of the year (default is year_t). |
ts | UNIX timestamp. |
Definition at line 23 of file time_conversion_aliases.hpp.
long time_shield::unixday | ( | long | ts | ) |
Alias for get_unix_day.
Get UNIX day.
This function returns the number of days elapsed since the UNIX epoch.
T | The return type of the function (default is unixday_t). |
ts | Timestamp in seconds (default is current timestamp). |
Definition at line 1207 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for get_unix_day function.
Get UNIX day.
This function returns the number of days elapsed since the UNIX epoch.
T | The return type of the function (default is unixday_t). |
ts | Timestamp in seconds (default is current timestamp). |
Definition at line 56 of file time_conversion_aliases.hpp.
long time_shield::unixday_ms | ( | long | ts_ms | ) |
Alias for get_unix_day_ms.
Get UNIX day from milliseconds timestamp.
ts_ms | Timestamp in milliseconds. |
Definition at line 1246 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for get_unix_day_ms function.
Get UNIX day from milliseconds timestamp.
This function returns the number of days elapsed since the UNIX epoch, given a timestamp in milliseconds.
T | The return type of the function (default is unixday_t). |
t_ms | Timestamp in milliseconds (default is current timestamp in milliseconds). |
Definition at line 90 of file time_conversion_aliases.hpp.
long time_shield::unixday_to_ts | ( | long | uday | ) |
Alias for unix_day_to_timestamp.
Convert UNIX day to timestamp in seconds.
uday | UNIX day value. |
Definition at line 1265 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for unix_day_to_timestamp function.
Converts a UNIX day to a timestamp in seconds.
Converts a number of days since the UNIX epoch (January 1, 1970) to the corresponding timestamp in seconds at the start of the specified day.
T | The return type of the function (default is ts_t). |
unix_day | Number of days since the UNIX epoch. |
Definition at line 114 of file time_conversion_aliases.hpp.
long time_shield::unixday_to_ts_ms | ( | long | uday | ) |
Alias for unix_day_to_timestamp_ms.
Convert UNIX day to timestamp in milliseconds.
uday | UNIX day value. |
Definition at line 1288 of file time_conversions.mqh.
|
constexprnoexcept |
Alias for unix_day_to_timestamp_ms function.
Converts a UNIX day to a timestamp in milliseconds.
Converts a number of days since the UNIX epoch (January 1, 1970) to the corresponding timestamp in milliseconds at the start of the specified day.
T | The return type of the function (default is ts_t). |
unix_day | Number of days since the UNIX epoch. |
Definition at line 144 of file time_conversion_aliases.hpp.
int time_shield::us_of_sec | ( | double | ts | ) |
Get the microsecond part of a floating-point timestamp.
ts | Timestamp in seconds with fractional part. |
Definition at line 46 of file time_conversions.mqh.
|
constexprnoexcept |
Get the microsecond part of the second from a floating-point timestamp.
T | Type of the returned value (default is int). |
ts | Timestamp in floating-point seconds. |
Definition at line 41 of file time_conversions.hpp.
long time_shield::week_begin | ( | long | ts | ) |
Alias for start_of_week.
Get the timestamp of the beginning of the week.
This function finds the timestamp of the beginning of the week, which corresponds to the start of Sunday.
ts | Timestamp (default: current timestamp). |
Definition at line 1091 of file time_conversions.mqh.
|
constexpr |
Alias for start_of_week function.
Get the timestamp of the beginning of the week.
This function finds the timestamp of the beginning of the week, which corresponds to the start of Sunday.
ts | Timestamp (default: current timestamp). |
Definition at line 1945 of file time_conversion_aliases.hpp.
|
constexpr |
Alias for day_of_week_date.
Get the day of the week.
year | Year. |
month | Month. |
day | Day. |
Definition at line 1736 of file time_conversion_aliases.hpp.
|
constexpr |
Alias for day_of_week_date.
Get the day of the week.
year | Year. |
month | Month. |
day | Day. |
Definition at line 1743 of file time_conversion_aliases.hpp.
|
constexpr |
Alias for get_weekday_from_date.
Get the day of the week from a date structure.
This function takes a date structure with fields 'year', 'mon', and 'day', and returns the day of the week (SUN = 0, MON = 1, ... SAT = 6).
date | Structure containing year, month, and day. |
Definition at line 1783 of file time_conversion_aliases.hpp.
|
constexprnoexcept |
Alias for get_weekday_from_ts.
Get the weekday from a timestamp.
ts | Timestamp. |
Definition at line 1838 of file time_conversion_aliases.hpp.
|
inlinenoexcept |
Alias for is_workday(ts_t).
Check if a given timestamp corresponds to a workday (Monday to Friday).
ts | Timestamp to check. |
Definition at line 1985 of file time_conversion_aliases.hpp.
|
inlinenoexcept |
Alias for is_workday(year_t, int, int).
Check if a calendar date corresponds to a workday (Monday to Friday).
year | Year component of the date. |
month | Month component of the date. |
day | Day component of the date. |
Definition at line 1997 of file time_conversion_aliases.hpp.
int time_shield::workday_index_in_month | ( | long | year, |
int | month, | ||
int | day ) |
Definition at line 861 of file time_conversions.mqh.
|
inlinenoexcept |
Determine the 1-based index of a workday within its month.
year | Year component of the date to analyse. |
month | Month component (1-12). |
day | Day component of the workday. |
Definition at line 1477 of file time_conversions.hpp.
|
inlinenoexcept |
Alias for is_workday(ts_ms_t).
Check if a given timestamp corresponds to a workday (Monday to Friday).
ts | Timestamp to check. |
Definition at line 1991 of file time_conversion_aliases.hpp.
long time_shield::year | ( | long | ts | ) |
Alias for get_year.
Get the year from the timestamp.
This function returns the year of the specified timestamp in seconds since the Unix epoch.
T | The return type of the function (default is year_t). |
ts | Timestamp in seconds (default is current timestamp). |
Definition at line 246 of file time_conversions.mqh.
|
inline |
Alias for get_year function.
Get the year from the timestamp.
This function returns the year of the specified timestamp in seconds since the Unix epoch.
T | The return type of the function (default is year_t). |
ts | Timestamp in seconds (default is current timestamp). |
Definition at line 1474 of file time_conversion_aliases.hpp.
long time_shield::year_begin | ( | long | ts | ) |
Alias for start_of_year.
Get the start of the year timestamp.
This function resets the days, months, hours, minutes, and seconds of the given timestamp to the beginning of the year.
ts | Timestamp. |
Definition at line 660 of file time_conversions.mqh.
|
inline |
Alias for start_of_year function.
Get the start of the year timestamp.
This function resets the days, months, hours, minutes, and seconds of the given timestamp to the beginning of the year.
ts | Timestamp. |
Definition at line 1511 of file time_conversion_aliases.hpp.
long time_shield::year_begin_date | ( | long | year | ) |
Alias for start_of_year_date.
Get the timestamp of the start of the year.
This function returns the timestamp at the start of the specified year.
year | Year. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 704 of file time_conversions.mqh.
|
inline |
Alias for start_of_year_date function.
Get the timestamp of the start of the year.
This function returns the timestamp at the start of the specified year.
year | Year. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 1541 of file time_conversion_aliases.hpp.
long time_shield::year_begin_date_ms | ( | long | year | ) |
Alias for start_of_year_date_ms.
Get the timestamp in milliseconds of the start of the year.
This function returns the timestamp at the start of the specified year in milliseconds.
year | Year. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 719 of file time_conversions.mqh.
|
inline |
Alias for start_of_year_date_ms function.
Get the timestamp in milliseconds of the start of the year.
This function returns the timestamp at the start of the specified year in milliseconds.
year | Year. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 1557 of file time_conversion_aliases.hpp.
long time_shield::year_begin_ms | ( | long | ts_ms | ) |
Alias for start_of_year_ms.
Get the start of the year timestamp in milliseconds.
This function resets the days, months, hours, minutes, and seconds of the given timestamp to the beginning of the year.
ts_ms | Timestamp in milliseconds. |
Definition at line 675 of file time_conversions.mqh.
|
inline |
Alias for start_of_year_ms function.
Get the start of the year timestamp in milliseconds.
This function resets the days, months, hours, minutes, and seconds of the given timestamp to the beginning of the year.
ts_ms | Timestamp in milliseconds. |
Definition at line 1525 of file time_conversion_aliases.hpp.
|
inline |
Alias for end_of_year function.
Get the end-of-year timestamp.
This function finds the last timestamp of the current year.
ts | Timestamp. |
Definition at line 1565 of file time_conversion_aliases.hpp.
long time_shield::year_end_ms | ( | long | ts_ms | ) |
Alias for end_of_year_ms.
Get the timestamp in milliseconds of the end of the year.
This function finds the last timestamp of the current year in milliseconds.
ts_ms | Timestamp in milliseconds. |
Definition at line 730 of file time_conversions.mqh.
|
inline |
Alias for end_of_year_ms function.
Get the timestamp in milliseconds of the end of the year.
This function finds the last timestamp of the current year in milliseconds.
ts_ms | Timestamp in milliseconds. |
Definition at line 1573 of file time_conversion_aliases.hpp.
long time_shield::year_ms | ( | long | ts_ms | ) |
Alias for get_year_ms.
Get the year from the timestamp in milliseconds.
This function returns the year of the specified timestamp in milliseconds since the Unix epoch.
T | The return type of the function (default is year_t). |
ts_ms | Timestamp in milliseconds (default is current timestamp). |
Definition at line 261 of file time_conversions.mqh.
|
inline |
Alias for get_year_ms function.
Get the year from the timestamp in milliseconds.
This function returns the year of the specified timestamp in milliseconds since the Unix epoch.
T | The return type of the function (default is year_t). |
ts_ms | Timestamp in milliseconds (default is current timestamp). |
Definition at line 1490 of file time_conversion_aliases.hpp.
long time_shield::year_start | ( | long | ts | ) |
Alias for start_of_year.
Get the start of the year timestamp.
This function resets the days, months, hours, minutes, and seconds of the given timestamp to the beginning of the year.
ts | Timestamp. |
Definition at line 656 of file time_conversions.mqh.
|
inline |
Alias for start_of_year function.
Get the start of the year timestamp.
This function resets the days, months, hours, minutes, and seconds of the given timestamp to the beginning of the year.
ts | Timestamp. |
Definition at line 1505 of file time_conversion_aliases.hpp.
long time_shield::year_start_date | ( | long | year | ) |
Alias for start_of_year_date.
Get the timestamp of the start of the year.
This function returns the timestamp at the start of the specified year.
year | Year. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 700 of file time_conversions.mqh.
|
inline |
Alias for start_of_year_date function.
Get the timestamp of the start of the year.
This function returns the timestamp at the start of the specified year.
year | Year. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 1534 of file time_conversion_aliases.hpp.
long time_shield::year_start_date_ms | ( | long | year | ) |
Alias for start_of_year_date_ms.
Get the timestamp in milliseconds of the start of the year.
This function returns the timestamp at the start of the specified year in milliseconds.
year | Year. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 715 of file time_conversions.mqh.
|
inline |
Alias for start_of_year_date_ms function.
Get the timestamp in milliseconds of the start of the year.
This function returns the timestamp at the start of the specified year in milliseconds.
year | Year. |
std::invalid_argument | if the date-time combination is invalid. |
Definition at line 1550 of file time_conversion_aliases.hpp.
long time_shield::year_start_ms | ( | long | ts_ms | ) |
Alias for start_of_year_ms.
Get the start of the year timestamp in milliseconds.
This function resets the days, months, hours, minutes, and seconds of the given timestamp to the beginning of the year.
ts_ms | Timestamp in milliseconds. |
Definition at line 671 of file time_conversions.mqh.
|
inline |
Alias for start_of_year_ms function.
Get the start of the year timestamp in milliseconds.
This function resets the days, months, hours, minutes, and seconds of the given timestamp to the beginning of the year.
ts_ms | Timestamp in milliseconds. |
Definition at line 1519 of file time_conversion_aliases.hpp.