class GMLTime

Public Class Methods

new(time) click to toggle source
Calls superclass method
# File lib/employees/gml/gmlTime.rb, line 12
def initialize(time)
        @time = toDateTime time
        super *(@time.to_a[0..5].reverse)
end

Public Instance Methods

toDateTime(time=nil) click to toggle source
# File lib/employees/gml/gmlTime.rb, line 22
def toDateTime(time=nil)
        return Time.parse(time).localtime unless time.nil?
        Time.parse(@time).localtime
end
toTimeZone(time=nil) click to toggle source
# File lib/employees/gml/gmlTime.rb, line 17
def toTimeZone(time=nil)
        return time.utc.iso8601 unless time.nil?
        @time.utc.iso8601
end