time.h Source File
|
CPP API
|
time.h
Go to the documentation of this file.
auto default_serialize()
This method is used by the default serialization feature.
Definition: time.h:308
TimePoint & operator+=(const TimeSpan &s)
Add or subtract a TimeSpan.
Definition: time.h:282
TimePoint operator-(const TimeSpan &s) const
Add or subtract a TimeSpan.
Definition: time.h:287
TimePoint & operator-=(const TimeSpan &s)
Add or subtract a TimeSpan.
Definition: time.h:291
int hour_of_day() const
Hour in the current day (0 - 23).
Definition: time.h:231
int m_seconds
The number of seconds after the epoch.
Definition: time.h:314
int day_of_week() const
Index of current day of the week (0,...,6 = Mo,...,Sun).
Definition: time.h:215
ScalarType hours() const
Time since the epoch in hours.
Definition: time.h:200
TimePoint(int seconds)
Creates a TimePoint from a specified number of seconds.
Definition: time.h:185
bool is_weekend() const
If the current time is on a weekend, e.g.
Definition: time.h:223
int seconds() const
Time since the epoch in seconds.
Definition: time.h:207
TimeSpan operator-(const TimePoint &p2) const
TimeSpan difference between this and another TimePoint.
Definition: time.h:302
TimeSpan time_since_midnight() const
Time since midnight.
Definition: time.h:239
TimePoint operator+(const TimeSpan &s) const
Add or subtract a TimeSpan.
Definition: time.h:278
TimeSpan operator/(int f) const
Multiplication with double and rounding down afterwards to whole seconds.
Definition: time.h:149
auto default_serialize()
This method is used by the default serialization feature.
Definition: time.h:161
TimeSpan & operator+=(const TimeSpan &s)
Multiplication with double and rounding down afterwards to whole seconds.
Definition: time.h:114
TimeSpan & operator*=(int f)
Multiplication with double and rounding down afterwards to whole seconds.
Definition: time.h:144
TimeSpan(int seconds)
Creates a TimeSpan that represents a number of seconds.
Definition: time.h:47
TimeSpan operator-(const TimeSpan &s) const
Multiplication with double and rounding down afterwards to whole seconds.
Definition: time.h:119
TimeSpan multiply(double f) const
Multiplication with double and rounding down afterwards to whole seconds.
Definition: time.h:139
TimeSpan & operator/=(int f)
Multiplication with double and rounding down afterwards to whole seconds.
Definition: time.h:153
TimeSpan operator+(const TimeSpan &s) const
Multiplication with double and rounding down afterwards to whole seconds.
Definition: time.h:110
TimeSpan & operator-=(const TimeSpan &s)
Multiplication with double and rounding down afterwards to whole seconds.
Definition: time.h:123
TimeSpan operator*(int f) const
Multiplication with double and rounding down afterwards to whole seconds.
Definition: time.h:129
TimeSpan seconds(int seconds)
Create a TimeSpan of a specified number of seconds.
Definition: time.h:321
TimeSpan days(int days)
Create a TimeSpan with a specified number of days.
Definition: time.h:348
TimeSpan hours(int hours)
Create a TimeSpan of a specified number of hours.
Definition: time.h:339
TimeSpan minutes(int minutes)
Create a TimeSpan of a specified number of minutes.
Definition: time.h:330
A collection of classes to simplify handling of matrix shapes in meta programming.
Definition: models/abm/analyze_result.h:30
Members< ValueTypes..., T > add(const char *member_name, T &member)
Add a class member.
Definition: default_serialize.h:139
Generated by