class LibTAD::TADTime::TimeChange

Information about a time change.

Attributes

newdst[R]

@return [Integer] New DST offset in seconds. Value will be null/empty if there is no DST for this location.

newlocaltime[R]

@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

newoffset[R]

@return [Integer] New total offset to UTC in seconds.

newzone[R]

@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.

oldlocaltime[R]

@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

utctime[R]

@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

new(hash) click to toggle source
# 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