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

Header for time zone structure and related functions. More...

#include "types.hpp"
#include "constants.hpp"

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_HPP_INCLUDED
 

Functions

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

Definition in file time_zone_struct.hpp.

Macro Definition Documentation

◆ _TIME_SHIELD_TIME_ZONE_STRUCT_HPP_INCLUDED

#define _TIME_SHIELD_TIME_ZONE_STRUCT_HPP_INCLUDED

Definition at line 5 of file time_zone_struct.hpp.