class LibTAD::TADTime::TimeChange
Information about a time change.
Attributes
@return [Integer] New DST offset in seconds. Value will be null/empty if there is no DST for this location.
@return [String] Local time after transition, formatted as ISO 8601 time.
Example: 2011-03-27T03:00:00 @see dev-test.timeanddate.com/docs/external-references#ISO8601 ISO8601
@return [Integer] New total offset to UTC in seconds.
@return [Integer] New time zone offset to UTC in seconds if there is a time zone change for this place. Otherwise the value will be null/empty. Time zones changes happen only very rarely, so the field will be null/empty on most occasions.
@return [String] Local time before transition, formatted as ISO 8601 time.
Example: 2011-03-27T02:00:00 @see dev-test.timeanddate.com/docs/external-references#ISO8601 ISO8601
@return [String] Time stamp of transition in UTC time, formatted as ISO 8601 time.
Example: 2011-03-27T01:00:00 @see dev-test.timeanddate.com/docs/external-references#ISO8601 ISO8601
Public Class Methods
# File lib/types/time/time_change.rb, line 39 def initialize(hash) @newdst = hash.fetch('newdst', nil) @newzone = hash.fetch('newzone', nil) @newoffset = hash.fetch('newoffset', nil) @utctime = hash.fetch('utctime', nil) @oldlocaltime = hash.fetch('oldlocaltime', nil) @newlocaltime = hash.fetch('newlocaltime', nil) end