VideoTools
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Gv::Timezone Class Reference

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.
 

Detailed Description

A representation of a timezone.

Definition at line 35 of file gvtimezone.h.

Constructor & Destructor Documentation

Gv::Timezone::Timezone ( const std::string &  hours)
explicit

Constructor with support for for half hours (eg.

"-8.5"). Throws on error.

Definition at line 37 of file gvtimezone.cpp.


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