 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
40 mySeconds = seconds + 60 * (minutes + 60 * (hours + 24 * (days)));
46 return static_cast<int>(60.0 * minutes);
137 if (0 <= h && h < 24) {
145 if (0 <= m && m < 60) {
153 if (0 <= s && s < 60) {
int getSecondsInCurrentDay()
void addSeconds(int sec)
addition of seconds to the current moment
AGTime operator+(const AGTime &time)
void addDays(int days)
addition of days to the current moment
void operator-=(const AGTime &time)
int getTime()
: returns the number of seconds from the beginning of the first day of simulation this includes
int convert(int days, int hours, int minutes, int seconds)
converts days, hours and minutes to seconds
bool operator<=(const AGTime &time)
bool operator<(const AGTime &time)
void operator+=(const AGTime &time)
bool operator==(const AGTime &time)
void addMinutes(int min)
addition of minutes to the current moment
int getSecondsOf(double minutes)
computes the number of seconds in the given minutes
void addHours(int hours)
addition of hours to the current moment
void setTime(int sec)
: sets the time from the beginning of the first day of simulation in seconds