Sha256: 0d6e619cc473bfab6268ac00e753fb18b2a0810bebc42cda9b39ec7b7bd14991

Contents?: true

Size: 226 Bytes

Versions: 3

Compression:

Stored size: 226 Bytes

Contents

# frozen_string_literal: true

module Trifle
  module Logs
    module Formatter
      class Timestamp
        def format(timestamp)
          timestamp.strftime('%Y-%m-%dT%H:%M:%S.%6N')
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
trifle-logs-0.2.1 lib/trifle/logs/formatter/timestamp.rb
trifle-logs-0.2.0 lib/trifle/logs/formatter/timestamp.rb
trifle-logs-0.1.0 lib/trifle/logs/formatter/timestamp.rb