Orbiter-Forum  

Go Back   Orbiter-Forum > Orbiter Space Flight Simulator > Tutorials & Challenges
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.

Reply
 
Thread Tools
  #1  
Old
soumya-8974's Avatar
soumya-8974 soumya-8974 is offline
Wiktronaut
Smile 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.
Reply With Quote
Views 1058 Comments 3
Total Comments 3

Comments

Old 02-05-2019, 12:59 PM   #2
Linguofreak
Orbinaut
Default

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.
Linguofreak is offline   Reply With Quote
Old 02-05-2019, 01:04 PM   #3
Urwumpe
Not funny anymore
 
Urwumpe's Avatar

Default

Quote:
Originally Posted by Linguofreak View Post
 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?
Urwumpe is offline   Reply With Quote
Old 02-05-2019, 08:25 PM   #4
Linguofreak
Orbinaut
Default

Quote:
Originally Posted by Urwumpe View Post
 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.
Linguofreak is offline   Reply With Quote
Reply

  Orbiter-Forum > Orbiter Space Flight Simulator > Tutorials & Challenges


Thread Tools

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


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

Quick Links Need Help?


About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.