VideoTools
|
A representation of a timezone. More...
#include <gvtimezone.h>
Public Member Functions | |
Timezone (int hours=0) | |
Constructor. | |
Timezone (const std::string &hours) | |
Constructor with support for for half hours (eg. More... | |
bool | zero () const |
Returns true for utc. | |
std::string | str () const |
Returns a five-character "+/-hhmm" representation. | |
std::time_t | seconds () const |
Returns the offset as a signed number of seconds. | |
A representation of a timezone.
Definition at line 35 of file gvtimezone.h.
|
explicit |
Constructor with support for for half hours (eg.
"-8.5"). Throws on error.
Definition at line 37 of file gvtimezone.cpp.