class Elb2Logstalgia::Types::Timestamp
Constants
- ELB_TIMESTAMP_FORMAT
Attributes
parsed[R]
Public Class Methods
new(*args, &block)
click to toggle source
# File lib/elb2logstalgia/types/timestamp.rb, line 10 def initialize(*args, &block) begin @parsed = Timeliness.parse(*args, :format => ELB_TIMESTAMP_FORMAT) rescue StandardError => e raise e end end
Public Instance Methods
to_epoch()
click to toggle source
# File lib/elb2logstalgia/types/timestamp.rb, line 18 def to_epoch begin self.parsed.to_time.to_i rescue StandardError => e raise e end end
Also aliased as: to_s