Darian Mars Calendar Converter

The Darian calendar is a proposed system of time-keeping on the planet Mars. It was created by aerospace engineer and political scientist Thomas Gangale in 1985. This library use version 2002 year of calendar with Telescopic Epoch (1609 instead of 1975 year in original calendar propose).

This Ruby library convert Earth time to Mars time in Darian calendar.

Based on JS converter by Thomas Gangale.

Usage

require 'darian'

earth_time = Time.now
mars_time  = Darian::Time.from_earth(earth_time)

mars_time.to_s #=> "214-09-17 15:07:17"

mars_time.year  #=> 214
mars_time.month #=> 9
mars_time.sol   #=> 17
mars_time.day   #=> 17

mars_time.month_name    #=> "Aries"
mars_time.week_sol_name #=> "Sol Martis"

License

R18n is licensed under the GNU Lesser General Public License version 3. See the LICENSE file or http://www.gnu.org/licenses/lgpl.html.

Author

Andrey “A.I.” Sitnik [email protected]