Class: DateTime

Inherits:
Object
  • Object
show all
Defined in:
lib/openid/util.rb

Instance Method Summary collapse

Instance Method Details

#to_timeObject

Converts to a UTC Time.



56
57
58
59
60
61
62
63
# File 'lib/openid/util.rb', line 56

def to_time()
	if offset == 0
		return Time.gm(year, month, day, hour, min, sec)
	else
		utc = new_offset
		return  Time.gm(utc.year, utc.month, utc.day, utc.hour, utc.min, utc.sec)
	end
end