ge211
Time_point Class Reference

Detailed Description

A point in time.

Time_point values can be compared; they cannot be added, but they can be subtracted to produce Duration values, and they can be shifted by Duration values.

Definition at line 160 of file ge211_time.h.

Public Member Functions

 Time_point ()
 Constructs the zero time point (the epoch).
 
Comparisons
bool operator== (Time_point other) const
 
bool operator!= (Time_point other) const
 
bool operator< (Time_point other) const
 
bool operator<= (Time_point other) const
 
bool operator> (Time_point other) const
 
bool operator>= (Time_point other) const
 
Arithmetic
Duration operator- (Time_point other) const
 
Time_point operator+ (Duration duration) const
 
Time_point operator- (Duration duration) const
 
Time_pointoperator+= (Duration duration)
 
Time_pointoperator-= (Duration duration)
 

Static Public Member Functions

static Time_point now ()
 Returns the current time.
 

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