Sha256: b75e37fedd3ae6c05ade24f942e7fe326d6996926e546250f3688cec6751eaf3
Contents?: true
Size: 318 Bytes
Versions: 7
Compression:
Stored size: 318 Bytes
Contents
class HistoricalDating::Range def initialize(from, to) @from = from @to = to end attr_reader :from, :to def julian_range [from.jd, to.jd] end def from_time Time.mktime(from.year, from.month, from.day) end def to_time Time.mktime(to.year, to.month, to.day, 23, 59, 59) end end
Version data entries
7 entries across 7 versions & 1 rubygems