The Clock
Moderators: winston, another_commander
- winston
- Pirate
- Posts: 731
- Joined: Mon Sep 27, 2004 10:21 pm
- Location: Port St. Mary, Isle of Man
- Contact:
The ship's clock is started at a defined value (PLAYER_SHIP_CLOCK_START) plus the current time of day. It is stored as a double precision number.
PLAYER_SHIP_CLOCK_START is defined as 2084004 * 86400
86400 is the number of seconds in a day, so the clock itself stores seconds since a (presumably arbitrary) epoch. 2084004 is the number of days since this epoch. This means the epoch starts 5705 (Earth) years before Oolite starts. Giles will have to tell you why he chose the epoch he did
PLAYER_SHIP_CLOCK_START is defined as 2084004 * 86400
86400 is the number of seconds in a day, so the clock itself stores seconds since a (presumably arbitrary) epoch. 2084004 is the number of days since this epoch. This means the epoch starts 5705 (Earth) years before Oolite starts. Giles will have to tell you why he chose the epoch he did

- Arexack_Heretic
- Dangerous Subversive Element
- Posts: 1876
- Joined: Tue Jun 07, 2005 7:32 pm
- Location: [%H] = Earth surface, Lattitude 52°10'58.19"N, longtitude 4°30'0.25"E.
- Contact:
yes it is, the Stargazer 'Observer's Guide to Ships in Serice' gives inservice dates in years AD (for Anno Domini) our timescale.
The mark3 was first released unto the market in the year 3100AD for example.
Maybe in the Ooniverse starfaring humanity has finally settled for the decimal universal timekeeping?
(something like: 100seconds in an hour, 10hours/day, 10days/month, 10months/year.) years would pass 5 times faster that way.
(decimal timekeeping, incidentally, would be an equally convincing reason for the backward Federation and Empire to ban contact with the outside Ooniverse as fraternisation with aliens would.)
The mark3 was first released unto the market in the year 3100AD for example.
Maybe in the Ooniverse starfaring humanity has finally settled for the decimal universal timekeeping?
(something like: 100seconds in an hour, 10hours/day, 10days/month, 10months/year.) years would pass 5 times faster that way.
(decimal timekeeping, incidentally, would be an equally convincing reason for the backward Federation and Empire to ban contact with the outside Ooniverse as fraternisation with aliens would.)

Riding the Rocket!
- Arexack_Heretic
- Dangerous Subversive Element
- Posts: 1876
- Joined: Tue Jun 07, 2005 7:32 pm
- Location: [%H] = Earth surface, Lattitude 52°10'58.19"N, longtitude 4°30'0.25"E.
- Contact:
- Arexack_Heretic
- Dangerous Subversive Element
- Posts: 1876
- Joined: Tue Jun 07, 2005 7:32 pm
- Location: [%H] = Earth surface, Lattitude 52°10'58.19"N, longtitude 4°30'0.25"E.
- Contact:
- Lord Winslow
- Above Average
- Posts: 22
- Joined: Fri Dec 02, 2005 1:39 am
- Location: Cape Cod, USA
- Contact: