48 friend std::ostream &operator <<(std::ostream &,
const Time &);
55 Time(
struct timeval *);
56 Time(
struct tm *,
unsigned int);
58 template <
typename T,
typename Period>
59 Time(std::chrono::duration<T, Period> t)
60 :
Time(std::chrono::duration_cast<std::chrono::microseconds>(t).count())
63 void from_dbl_time(
double);
66 int set_date(
int,
int = 1,
int = 1,
int = 0,
int = 0,
int = 0);
68 Time &operator =(int64_t);
69 Time &operator =(uint64_t);
70 Time &operator =(
double);
71 Time &operator =(
struct timeval);
73 bool operator ==(
const Time &)
const;
74 bool operator !=(
const Time &)
const;
75 bool operator <(
const Time &)
const;
76 bool operator >(
const Time &)
const;
77 bool operator <=(
const Time &)
const;
78 bool operator >=(
const Time &)
const;
84 Time operator *(int64_t)
const;
86 double to_dbl()
const;
87 double to_dbl_time()
const;
88 int64_t to_int64()
const;
89 uint64_t to_uint64()
const;
90 time_t to_time_t()
const;
91 std::string to_str()
const;
92 struct timeval to_tv() const;
93 std::string to_real_time()
const;
94 std::string format_time(
const char *)
const;
95 std::string to_rfc811_time()
const;
96 std::string to_iso_time()
const;
97 std::string diff_str_to(
const Time &)
const;
104 int day_of_week()
const;
105 bool is_leap_year()
const;
106 int month_days()
const;
116 std::ostream &operator <<(std::ostream &,
const Time &);
Global data structures and functions.
Datentyp zur Speicherung der Zeit in Mikrosekunden.
#define DLS_PUBLIC
Macro for public method definitions (empty on non-win32).