Time Shield Library
C++ library for working with time
Loading...
Searching...
No Matches
time_zone_struct.mqh File Reference

Header for time zone structure and related functions (MQL5). More...

Go to the source code of this file.

Classes

struct  time_shield::TimeZoneStruct
 Structure to represent time zone information. More...
 

Namespaces

namespace  time_shield
 Main namespace for the Time Shield library.
 

Macros

#define __TIME_SHIELD_TIME_ZONE_STRUCT_MQH__
 

Functions

const TimeZoneStruct time_shield::create_time_zone_struct (int hour, int min, bool is_positive=true)
 Creates a TimeZoneStruct instance.
 
const TimeZoneStruct time_shield::to_time_zone_struct (tz_t offset)
 Converts an integer to a TimeZoneStruct.
 
const TimeZoneStruct time_shield::to_tz (tz_t offset)
 Alias for to_time_zone_struct function.
 
const std::string time_shield::time_zone_struct_to_string (const TimeZoneStruct &tz)
 Converts a TimeZoneStruct to a string representation.
 
const std::string time_shield::to_string (const TimeZoneStruct &tz)
 Alias for time_zone_struct_to_string function.
 
const std::string time_shield::to_str (const TimeZoneStruct &tz)
 Alias for time_zone_struct_to_string function.
 
const tz_t time_shield::time_zone_struct_to_offset (const TimeZoneStruct &tz)
 Converts a TimeZoneStruct to a single integer representation.
 
const tz_t time_shield::tz_to_offset (const TimeZoneStruct &tz)
 Alias for time_zone_struct_to_offset function.
 
const tz_t time_shield::to_offset (const TimeZoneStruct &tz)
 Alias for time_zone_struct_to_offset function.
 

Detailed Description

Header for time zone structure and related functions (MQL5).

This file contains the definition of the TimeZoneStruct structure and helper functions to create and convert time zone values in MQL5.

Definition in file time_zone_struct.mqh.

Macro Definition Documentation

◆ __TIME_SHIELD_TIME_ZONE_STRUCT_MQH__

#define __TIME_SHIELD_TIME_ZONE_STRUCT_MQH__

Definition at line 8 of file time_zone_struct.mqh.