class Transit::WriteHandlers::VerboseDateHandler

Public Instance Methods

rep(d) click to toggle source
# File lib/transit/write_handlers.rb, line 322
def rep(d)
  # to_datetime because DateTime's strftime is faster
  # thank Time's, and millis are 000 so it doesn't matter
  # if we truncate or round.
  d.to_datetime.strftime(Transit::TIME_FORMAT)
end