Template:Age in sols/doc

From IxWiki
Revision as of 07:05, 2 June 2023 by >WOSlinker (syntaxhighlight lang="wikitext")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Usage

This template returns the number of sols, or Mars solar days, between two Earth dates. If the second set of parameters is not included it will automatically calculate the days between a given date and today. It is based on the product of the count of Earth days past and the ratio of the length of Earth's solar day length (86400 seconds) with a Mars solar day (88775.24409 seconds), rounded to the nearest sol. That ratio comes from technical notes on time keeping on Mars from NASA's Goddard Spaceflight Center.[1]

To use, type:

{{age in sols|month1= |day1= |year1= |month2= |day2= | year2=}}

Or with unnamed parameters:

{{age in sols|year1|month1|day1|year2|month2|day2}}

displays sols between two Earth dates

or

{{age in sols|year1|month1|day1}}

displays sols since a given Earth date

Examples:

  • {{age in sols|2004|01|04|2010|03|22}}
    
    gives 2208 sols that Spirit rover was operational on Mars
  • {{age in sols|2012|8|6}}
    
    gives 4375 sols since the Mars Science Laboratory landed on Mars

This template was created for use on Mars mission pages, NASA ones in particular, which identify mission milestones based on the mission sol which begins with sol 0 on the landing date for rover and landers and the orbital insertion date for orbiters. Examples include:

This template is useful for converting any span of Earth days into the appropriate number of sols with precision of ~ ± 1 sol due because it rounds to the nearest sol.

See also

References

  1. Lua error: bad argument #1 to "get" (not a valid title).