class Time

Public Instance Methods

kibana() click to toggle source

Returns time in format `2014-06-29T18:26:54-07:00`

# File lib/es_utils/core_ext/time.rb, line 5
def kibana
  self.strftime("%FT%T%:z")
end
logstash() click to toggle source
# File lib/es_utils/core_ext/time.rb, line 9
def logstash
  self.strftime("%Y.%m.%d")
end