1. 首页
  2. 考试认证
  3. 其它
  4. darian 达里安火星日历转换器

darian 达里安火星日历转换器

上传者: 2024-10-14 21:44:42上传 ZIP文件 9.5KB 热度 19次

达里安火星日历转换器是一个Ruby库,用于将地球时间转换为达利安日历中的火星时间,是建议的火星计时系统。该系统由航空航天工程师和政治学家Thomas Gangale于1985年创建。该库使用了2002年版本的带有Telescopic Epoch的日历(1609年,而不是原始日历中建议的1975年)。

用法示例:


require 'darian'

earth_time = Time.now

mars_time = Darian.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

下载地址
用户评论