lib/semantic_logger/formatters/base.rb
def format_time(time)
        case time_format
        when :iso_8601
          time.utc.iso8601(PRECISION)
        when :ms
          (time.to_f * 1_000).to_i
        when :none
          time
        when :seconds
          time.to_f
        when nil
          ''
        else
          time.strftime(time_format)
        end
      end
# Return the Time as a formatted string
Return the Time as a formatted string
Return the Time as a formatted string
def format_time(time)
        case time_format
        when :iso_8601
          time.utc.iso8601(PRECISION)
        when :ms
          (time.to_f * 1_000).to_i
        when :none
          time
        when :seconds
          time.to_f
        when nil
          ''
        else
          time.strftime(time_format)
        end
      end
def format_time ( time ) case time_format when :iso_8601 time . utc . iso8601 ( PRECISION ) when :ms ( time . to_f * 1_000 ) . to_i when :none time when :seconds time . to_f when nil '' else time . strftime ( time_format ) end end
Return the Time as a formatted string
Return the Time as a formatted string
time