module Clock::ISO8601

Public Instance Methods

iso8601(time=nil, precision: nil, system_time: nil) click to toggle source
# File lib/clock/clock.rb, line 75
def iso8601(time=nil, precision: nil, system_time: nil)
  precision ||= self.precision
  time ||= now(system_time: system_time)
  time.iso8601(precision)
end
precision() click to toggle source
# File lib/clock/clock.rb, line 81
def precision
  Defaults.precision
end