Class: VORuby::STC::V1_30::MJDTime

Inherits:
JDTimeType show all
Includes:
AbsoluteTime
Defined in:
lib/voruby/stc/1.30/stc.rb

Overview

MJD time (=JD - 2400000.5).

Instance Attribute Summary

Attributes inherited from JDTimeType

#value

Attributes included from STCReference

#id, #idref, #ucd, #xlink_href, #xlink_type

Instance Method Summary collapse

Methods included from SerializableToXml

#element

Methods inherited from JDTimeType

#==, from_xml, #initialize, #to_xml

Methods included from STCReference

#stc_reference_eq, stc_reference_from_xml, #stc_reference_to_xml

Constructor Details

This class inherits a constructor from VORuby::STC::V1_30::JDTimeType

Instance Method Details

#to_datetimeObject



465
466
467
# File 'lib/voruby/stc/1.30/stc.rb', line 465

def to_datetime
  super(self.value).mjd
end