Class: Transit::WriteHandlers::VerboseDateTimeHandler

Inherits:
VerboseTimeHandler show all
Defined in:
lib/transit/write_handlers.rb

Instance Method Summary collapse

Methods inherited from VerboseTimeHandler

#string_rep, #tag

Instance Method Details

#rep(t) ⇒ Object


315
316
317
318
# File 'lib/transit/write_handlers.rb', line 315

def rep(t)
  # .utc because to_time already creates a new object
  t.to_time.utc.strftime(Transit::TIME_FORMAT)
end