# encoding: utf-8 require "logstash/namespace" require "logstash-core-event" module LogStash class TimestampParserError < StandardError; end class Timestamp include Comparable # TODO (colin) implement in Java def <=>(other) self.time <=> other.time end # TODO (colin) implement in Java def +(other) self.time + other end # TODO (colin) implement in Java def -(value) self.time - (value.is_a?(Timestamp) ? value.time : value) end end end