Class: LogStash::Timestamp
- Inherits:
-
Object
- Object
- LogStash::Timestamp
- Includes:
- Comparable
- Defined in:
- lib/logstash/timestamp.rb
Instance Method Summary collapse
-
#+(other) ⇒ Object
TODO (colin) implement in Java.
-
#-(value) ⇒ Object
TODO (colin) implement in Java.
-
#<=>(other) ⇒ Object
TODO (colin) implement in Java.
- #eql?(other) ⇒ Boolean
Instance Method Details
#+(other) ⇒ Object
TODO (colin) implement in Java
21 22 23 |
# File 'lib/logstash/timestamp.rb', line 21 def +(other) self.time + other end |
#-(value) ⇒ Object
TODO (colin) implement in Java
26 27 28 |
# File 'lib/logstash/timestamp.rb', line 26 def -(value) self.time - (value.is_a?(Timestamp) ? value.time : value) end |
#<=>(other) ⇒ Object
TODO (colin) implement in Java
12 13 14 |
# File 'lib/logstash/timestamp.rb', line 12 def <=>(other) self.time <=> other.time end |
#eql?(other) ⇒ Boolean
16 17 18 |
# File 'lib/logstash/timestamp.rb', line 16 def eql?(other) self.== other end |