Class: Time
- Inherits:
-
Object
- Object
- Time
- Defined in:
- lib/es_utils/core_ext/time.rb
Instance Method Summary collapse
-
#kibana ⇒ Object
Returns time in format ‘2014-06-29T18:26:54-07:00`.
- #logstash ⇒ Object
Instance Method Details
#kibana ⇒ Object
Returns time in format ‘2014-06-29T18:26:54-07:00`
5 6 7 |
# File 'lib/es_utils/core_ext/time.rb', line 5 def kibana self.strftime("%FT%T%:z") end |
#logstash ⇒ Object
9 10 11 |
# File 'lib/es_utils/core_ext/time.rb', line 9 def logstash self.strftime("%Y.%m.%d") end |