class Droonga::MessagePackPacker::TimeFormatter

Constants

MICRO_SECONDS_DECIMAL_PLACE

Public Class Methods

format(object) click to toggle source
# File lib/droonga/message-pack-packer/time-formatter.rb, line 22
def format(object)
  formatter = new(object)
  formatter.format
end
new(time) click to toggle source
# File lib/droonga/message-pack-packer/time-formatter.rb, line 30
def initialize(time)
  @time = time
end

Public Instance Methods

format() click to toggle source
# File lib/droonga/message-pack-packer/time-formatter.rb, line 34
def format
  @time.utc.iso8601(MICRO_SECONDS_DECIMAL_PLACE)
end