Class: Dtn::Messages::System::Timestamp

Inherits:
Dtn::Message
  • Object
show all
Defined in:
lib/dtn/messages/system/timestamp.rb

Overview

Parsed timestamp

Class Method Summary collapse

Methods inherited from Dtn::Message

callback_name, #callback_name

Class Method Details

.parse(line:) ⇒ Object



9
10
11
# File 'lib/dtn/messages/system/timestamp.rb', line 9

def parse(line:, **)
  new timestamp: line[2..].to_datetime
end