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

Conversions between numeric offsets and TimeZoneStruct. More...

Go to the source code of this file.

Namespaces

namespace  time_shield
 Main namespace for the Time Shield library.
 

Functions

template<class T = TimeZoneStruct>
time_shield::to_time_zone (tz_t offset)
 Converts an integer to a time zone structure.
 
template<class T>
TIME_SHIELD_CONSTEXPR tz_t time_shield::to_tz_offset (const T &tz) noexcept
 Convert time zone struct to offset in seconds.
 
TIME_SHIELD_CONSTEXPR tz_t time_shield::tz_offset_hm (int hour, int min=0) noexcept
 Build offset in seconds from hours/minutes.
 
TIME_SHIELD_CONSTEXPR bool time_shield::is_valid_tz_offset (tz_t off) noexcept
 Check if a numeric offset is within supported bounds.
 

Detailed Description

Conversions between numeric offsets and TimeZoneStruct.

Definition in file time_zone_offset_conversions.hpp.