[ Version ( since = "2.58" ) ]
public TimeZone.offset (int32 seconds)
Creates a TimeZone corresponding to the given constant offset from UTC, in seconds.
This is equivalent to calling TimeZone with a string in the form `[+|-]
hh[GTimeZone:mm
[GTimeZone:ss
s]]`.
It is possible for this function to fail if seconds
is too big (greater than 24 hours), in which case this function will
return the UTC timezone for backwards compatibility. To detect failures like this, use
TimeZone.new_identifier directly.
seconds |
offset to UTC, in seconds |
a timezone at the given offset from UTC, or UTC on failure |