Orbiter-Forum [Tutorial] Unix time in Orbiter
 Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

 Tutorials & Challenges Feel free to publish your tutorials, challenges, & flight scenarios in this forum.

#1
 soumya-8974 Wiktronaut
Unix time in Orbiter
by soumya-8974 02-05-2019, 07:13 AM

Quote:
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 by soumya-8974; 02-05-2019 at 07:20 AM.

 02-05-2019, 12:59 PM #2 Linguofreak Orbinaut 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.
 02-05-2019, 01:04 PM #3 Urwumpe Not funny anymore Quote: Originally Posted by Linguofreak  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?
 02-05-2019, 08:25 PM #4 Linguofreak Orbinaut Quote: Originally Posted by Urwumpe  Does Orbiter even model the tiny variations of Earths rotation rate? I'd think it would need to so as not to cause problems with historical missions.

 Posting Rules BB code is On Smilies are On [IMG] code is On HTML code is Off You may not post new threads You may not post replies You may not post attachments You may not edit your posts
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Orbiter-Forum.com     Announcements     Meets & Greets Orbiter Space Flight Simulator     Orbiter Web Forum         OFMM         Orbiter Forum Space Station         Simpit Forum     General Questions & Help     MFD Questions & Help     Hardware & Software Help     Tutorials & Challenges     Orbiter SDK     Orbiter Visualization Project     Orbiter Beta » Orbiter Project Orbiter Addons     OrbitHangar Addons & Comments     Addons     Addon Development     Addon Requests     Addon Support & Bugs         Addon Developer Forums             Project Apollo - NASSP     Orbiter Lua Scripting Far Side of the Moon     Spaceflight News     Math & Physics     Astronomy & the Night Sky     Backyard Rocketry     Brighton Lounge     International Forum

All times are GMT. The time now is 04:43 AM.