Sha256: 0e0b84292f1c040fc9775da359512dd61505e5ad5b96cfc3fd0a0c061598ac78

Contents?: true

Size: 252 Bytes

Versions: 8

Compression:

Stored size: 252 Bytes

Contents

# frozen_string_literal: true

# extensions for Time class
#   provides formater
#   - to epoch millisecond format
#   - to iso format with millisecond
class Time
  def to_epochmillis
    (to_f * 1000).to_i
  end

  def to_iso
    iso8601(3)
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
fluent-plugin-kafka-status-0.2.1 lib/fluent/plugin/time_ext.rb
fluent-plugin-kafka-status-0.2.0 lib/fluent/plugin/time_ext.rb
fluent-plugin-ssl-check-2.3.0 lib/fluent/plugin/extensions/time.rb
fluent-plugin-ssl-check-2.2.0 lib/fluent/plugin/extensions/time.rb
fluent-plugin-ssl-check-2.1.0 lib/fluent/plugin/extensions/time.rb
fluent-plugin-ssl-check-2.0.1 lib/fluent/plugin/extensions/time.rb
fluent-plugin-ssl-check-2.0.0 lib/fluent/plugin/extensions/time.rb
fluent-plugin-ssl-check-1.1.0 lib/fluent/plugin/extensions/time.rb