Sha256: 74043eec156789135dfe7653e51ed969fc956389d6c434cf145fa1be2e8ff380
Contents?: true
Size: 508 Bytes
Versions: 67
Compression:
Stored size: 508 Bytes
Contents
# 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
Version data entries
67 entries across 66 versions & 9 rubygems