class OpenC3::ReceivedTimeFormattedConversion

Converts the packet received time object into a formatted string.

def call(value, packet, buffer)

Returns:
  • (String) - Formatted packet time

Parameters:
  • () --
def call(value, packet, buffer)
  if packet.received_time
    return packet.received_time.formatted
  else
    return 'No Packet Received Time'
  end
end

def initialize

Initializes converted_type to :STRING and converted_bit_size to 0
def initialize
  super()
  @converted_type = :STRING
  @converted_bit_size = 0
end