Method: OpenC3::UnixTimeSecondsConversion#call

Defined in:
lib/openc3/conversions/unix_time_seconds_conversion.rb

#call(value, packet, buffer) ⇒ Float

Returns Packet time in seconds since UNIX epoch.

Parameters:

  • value (Object)

    The value to convert

  • packet (Packet)

    The packet which contains the value. This can be useful to reach into the packet and use other values in the conversion.

  • buffer (String)

    The packet buffer

Returns:

  • (Float)

    Packet time in seconds since UNIX epoch



40
41
42
# File 'lib/openc3/conversions/unix_time_seconds_conversion.rb', line 40

def call(value, packet, buffer)
  super.to_f
end