Method: OpenC3::UnixTimeConversion#to_s
- Defined in:
- lib/openc3/conversions/unix_time_conversion.rb
#to_s ⇒ String
Returns The name of the class followed by the time conversion.
58 59 60 61 62 63 64 |
# File 'lib/openc3/conversions/unix_time_conversion.rb', line 58 def to_s if @microseconds_item_name return "Time.at(packet.read('#{@seconds_item_name}', :#{@seconds_type}, buffer), packet.read('#{@microseconds_item_name}', :#{@microseconds_type}, buffer)).sys" else return "Time.at(packet.read('#{@seconds_item_name}', :#{@seconds_type}, buffer), 0).sys" end end |