class LibTAD::TADTime::TADTimeZone
Timezone information.
Attributes
offset[R]
@return [String] The time zone offset (from UTC) in string representation.
Example: +11:00
zoneabb[R]
@return [String] Abbreviated time zone name.
Example: LHDT
zonedst[R]
@return [Integer] DST component of time zone offset in seconds.
Example: 1800
zonename[R]
@return [String] Full time zone name.
Example: Lord Howe Daylight Time
zoneoffset[R]
@return [Integer] Basic time zone offset (without DST) in seconds.
Example: 37800
zonetotaloffset[R]
@return [Integer] Total offset from UTC in seconds.
Example: 39600
Public Class Methods
new(hash)
click to toggle source
# File lib/types/time/timezone.rb, line 41 def initialize(hash) @offset = hash.fetch('offset', nil) @zoneabb = hash.fetch('zoneabb', nil) @zonename = hash.fetch('zonename', nil) @zoneoffset = hash.fetch('zoneoffset', nil) @zonedst = hash.fetch('zonedst', nil) @zonetotaloffset = hash.fetch('zonetotaloffset', nil) end