module Stardate

Constants

BASE_DATE
VERSION
YEAR_DURATION

Average value of a calendar year, considering the occurrence of leap years, in accordance with the inferred Stardates in Star Trek FAQ by Andrew Main

Public Class Methods

set_base_date_to_2005() click to toggle source
# File lib/stardate.rb, line 17
def self.set_base_date_to_2005
  BASE_DATE.year = 2005
  BASE_DATE.stardate = 58_000.0
end
set_base_date_to_2323() click to toggle source
# File lib/stardate.rb, line 12
def self.set_base_date_to_2323
  BASE_DATE.year = 2323
  BASE_DATE.stardate = 0.0
end