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.
 

Functions

const TimeZoneStruct time_shield::create_time_zone_struct (int hour, int min, bool is_positive=true)
 Creates a TimeZoneStruct instance.
 
TimeZoneStruct time_shield::to_time_zone_struct (int offset)
 Converts an integer offset to a TimeZoneStruct.
 
TimeZoneStruct time_shield::to_tz (int offset)
 Converts an integer offset to a TimeZoneStruct.
 
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.