Time Shield Library
C++ library for working with time
Loading...
Searching...
No Matches
Time structure conversions

Functions

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 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

Function Documentation

◆ time_zone_struct_to_offset()

int time_shield::time_zone_struct_to_offset ( const TimeZoneStruct & tz)
inline

Converts a TimeZoneStruct to a single integer representation.

Parameters
tzThe TimeZoneStruct to convert.
Returns
An integer representing the TimeZoneStruct.

Definition at line 91 of file time_zone_struct.hpp.

◆ to_offset()

int time_shield::to_offset ( const TimeZoneStruct & tz)
inline

Alias for time_zone_struct_to_offset function.

Converts a TimeZoneStruct to a single integer representation.

Parameters
tzThe TimeZoneStruct to convert.
Returns
An integer representing the TimeZoneStruct.

Definition at line 105 of file time_zone_struct.hpp.

◆ to_time_zone_struct()

const TimeZoneStruct time_shield::to_time_zone_struct ( tz_t offset)
inline

Converts an integer to a TimeZoneStruct.

Parameters
offsetThe integer to convert.
Returns
A TimeZoneStruct represented by the given integer.

Definition at line 45 of file time_zone_struct.hpp.

◆ to_tz()

const TimeZoneStruct time_shield::to_tz ( tz_t offset)
inline

Alias for to_time_zone_struct function.

Converts an integer to a TimeZoneStruct.

Parameters
offsetThe integer to convert.
Returns
A TimeZoneStruct represented by the given integer.

Definition at line 56 of file time_zone_struct.hpp.

◆ tz_to_offset()

int time_shield::tz_to_offset ( const TimeZoneStruct & tz)
inline

Alias for time_zone_struct_to_offset function.

Converts a TimeZoneStruct to a single integer representation.

Parameters
tzThe TimeZoneStruct to convert.
Returns
An integer representing the TimeZoneStruct.

Definition at line 98 of file time_zone_struct.hpp.