44 typedef std::pair<bool,unsigned int>
Offset ;
46 static EpochTime
now() ;
58 static Offset
offset( EpochTime epoch_time ) ;
74 static std::tm * gmtime_r(
const std::time_t * , std::tm * ) ;
75 static std::tm * localtime_r(
const std::time_t * , std::tm * ) ;
static BrokenDownTime utc(EpochTime epoch_time)
Converts from epoch time to UTC broken-down-time.
static EpochTime now()
Returns the current epoch time.
static Offset offset(EpochTime epoch_time)
Returns the offset between UTC and localtime as at 'epoch_time'.
static BrokenDownTime local(EpochTime epoch_time)
Converts from epoch time to local broken-down-time.
std::pair< bool, unsigned int > Offset
A low-level static class used by Date and Time.
static std::string offsetString(Offset offset)
Converts the given utc/localtime offset into a five-character "+/-hhmm" string.
#define G_EXCEPTION(class_name, description)
define as a function rather than a type if optimising for size
struct std::tm BrokenDownTime
static EpochTime epochTime(const BrokenDownTime &broken_down_time)
Converts from UTC broken-down-time to epoch time.