48 sec = seconds + 60 * (minutes + 60 * (hours + 24 * (days)));
54 return static_cast<int>(60.0 * minutes);
59 if (this->
sec == time.
sec) {
68 if (this->
sec < time.
sec) {
77 if (this->
sec <= time.
sec) {
107 return (
sec / 86400);
112 return ((
sec / 3600) % 24);
117 return ((
sec / 60) % 60);
127 return (
sec % 86400);
145 if (0 <= h && h < 24) {
153 if (0 <= m && m < 60) {
161 if (0 <= s && s < 60) {
int convert(int days, int hours, int minutes, int seconds)
converts days, hours and minutes to seconds
void operator-=(const AGTime &time)
int getSecondsOf(SUMOReal minutes)
computes the number of seconds in the given minutes
void addDays(int days)
addition of days to the current moment
bool operator<=(const AGTime &time)
void addHours(int hours)
addition of hours to the current moment
bool operator<(const AGTime &time)
bool operator==(const AGTime &time)
AGTime operator+(const AGTime &time)
void operator+=(const AGTime &time)
void addMinutes(int min)
addition of minutes to the current moment
void addSeconds(int sec)
addition of seconds to the current moment
int getSecondsInCurrentDay()
int getTime()
: returns the number of seconds from the beginning of the first day of simulation this includes ...
void setTime(int sec)
: sets the time from the beginning of the first day of simulation in seconds