DLS  1.6
LibDLS::Time Class Reference

Datentyp zur Speicherung der Zeit in Mikrosekunden. More...

Public Member Functions

 Time (int64_t)
 
 Time (uint64_t)
 
 Time (double)
 
 Time (struct timeval *)
 
 Time (struct tm *, unsigned int)
 
template<typename T , typename Period >
 Time (std::chrono::duration< T, Period > t)
 
void from_dbl_time (double)
 
void set_null ()
 
void set_now ()
 
int set_date (int, int=1, int=1, int=0, int=0, int=0)
 
Timeoperator= (int64_t)
 
Timeoperator= (uint64_t)
 
Timeoperator= (double)
 
Timeoperator= (struct timeval)
 
bool operator== (const Time &) const
 
bool operator!= (const Time &) const
 
bool operator< (const Time &) const
 
bool operator> (const Time &) const
 
bool operator<= (const Time &) const
 
bool operator>= (const Time &) const
 
bool is_null () const
 
Time operator+ (const Time &) const
 
Timeoperator+= (const Time &)
 
Time operator- (const Time &) const
 
Time operator* (int64_t) const
 
double to_dbl () const
 
double to_dbl_time () const
 
int64_t to_int64 () const
 
uint64_t to_uint64 () const
 
time_t to_time_t () const
 
std::string to_str () const
 
struct timeval to_tv () const
 
std::string to_real_time () const
 
std::string format_time (const char *) const
 
std::string to_rfc811_time () const
 
std::string to_iso_time () const
 
std::string diff_str_to (const Time &) const
 
int year () const
 
int month () const
 
int day () const
 
int hour () const
 
int min () const
 
int sec () const
 
int day_of_week () const
 
bool is_leap_year () const
 
int month_days () const
 

Static Public Member Functions

static Time now ()
 

Friends

std::ostream & operator<< (std::ostream &, const Time &)
 

Detailed Description

Datentyp zur Speicherung der Zeit in Mikrosekunden.

Dieser Datentyp verwaltet einen int64_t integer zur Speicherung der Mikrosekunden nach epoch.

Definition at line 46 of file Time.h.