Tutorial Unix time in Orbiter

Sbb1413

Well-known member
Joined
Aug 14, 2018
Messages
948
Reaction score
373
Points
78
Location
India
Preferred Pronouns
he/his/him
Unix time (also known as POSIX time or UNIX Epoch time) is a system for describing a point in time. It is the number of seconds that have elapsed since 00:00:00 Thursday, 1 January 1970, Coordinated Universal Time (UTC), minus leap seconds. Every day is treated as if it contains exactly 86400 seconds, so leap seconds are to be subtracted since the epoch. It is used widely in Unix-like and many other operating systems and file formats. However, Unix time is not a true representation of UTC, as a leap second in UTC shares the same Unix time as the second which came before it. Unix time may be checked on most Unix systems by typing [date +%s] on the command line.
-Wikipedia​
To get the Unix time in Orbiter, clone any scenario and change the MJD with the following:
Code:
40587.000000
And the simulation time is your Unix time, just don't save any state.
 
Last edited:

Linguofreak

Well-known member
Joined
May 10, 2008
Messages
5,032
Reaction score
1,273
Points
188
Location
Dallas, TX
Strictly speaking, Unix time uses the SI second, not the fraction-of-a-day second, even though it assumes exactly 86400 seconds in a day, so without a leap second table, you can't convert exactly between Unix time and MJD.
 

Urwumpe

Not funny anymore
Addon Developer
Donator
Joined
Feb 6, 2008
Messages
37,612
Reaction score
2,332
Points
203
Location
Wolfsburg
Preferred Pronouns
Sire
Strictly speaking, Unix time uses the SI second, not the fraction-of-a-day second, even though it assumes exactly 86400 seconds in a day, so without a leap second table, you can't convert exactly between Unix time and MJD.

Does Orbiter even model the tiny variations of Earths rotation rate?
 
Top