Template:Age in sols/doc

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.

To use, type:

Or with unnamed parameters: displays sols between two Earth dates or displays sols since a given Earth date

Examples:
 * gives sols that Spirit rover was operational on Mars
 * gives 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:
 * Viking 1
 * Viking 2
 * Mars Pathfinder
 * Spirit rover
 * Opportunity rover
 * Mars Science Laboratory

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.