21 #ifndef UNIVERSALCLOCK_H 22 #define UNIVERSALCLOCK_H 41 LongReal mJulianDayBase;
44 LongReal mCurrentTime;
47 LongReal mLastUpdateTime;
50 Ogre::Real mTimeScale;
64 void setTimeScale (
const Ogre::Real scale);
69 Ogre::Real getTimeScale ()
const;
74 void update (
const Ogre::Real time);
81 void setJulianDay(LongReal value);
86 void setGregorianDateTime(
87 int year,
int month,
int day,
88 int hour,
int minute,
double second);
92 LongReal getJulianDay()
const;
97 LongReal getJulianDayDifference()
const;
102 LongReal getJulianSecond()
const;
107 LongReal getJulianSecondDifference()
const;
111 #endif //UNIVERSALCLOCK_H
The system's time model.
static const LongReal SECONDS_PER_DAY
Number of seconds per day; exactly 60*60*24.