roo_time
API Documentation for roo_time
Loading...
Searching...
No Matches
roo_time::TimeZone Class Reference

#include <roo_time.h>

Public Member Functions

 TimeZone ()
 Constructs UTC timezone.
 
constexpr TimeZone (Duration offset)
 Creates time zone with specified UTC offset.
 
constexpr Duration offset () const
 Returns UTC offset of this time zone.
 

Detailed Description

Definition at line 685 of file roo_time.h.

Constructor & Destructor Documentation

◆ TimeZone() [1/2]

roo_time::TimeZone::TimeZone ( )
inline

Constructs UTC timezone.

Definition at line 688 of file roo_time.h.

◆ TimeZone() [2/2]

constexpr roo_time::TimeZone::TimeZone ( Duration  offset)
inlineexplicitconstexpr

Creates time zone with specified UTC offset.

Definition at line 691 of file roo_time.h.

Member Function Documentation

◆ offset()

constexpr Duration roo_time::TimeZone::offset ( ) const
inlineconstexpr

Returns UTC offset of this time zone.

Definition at line 695 of file roo_time.h.

References roo_time::Minutes().

Referenced by roo_time::DateTime::DateTime(), roo_time::DateTime::DateTime(), roo_time::operator!=(), and roo_time::operator==().


The documentation for this class was generated from the following file: