method Tz.fixed
A zone with a constant offset from UTC.
Example:
use std.time { Tz, Time }
fn main() io {
let tz = Tz.fixed(3h)!
print("{tz.offsetAt(Time.ofUnixSeconds(0)).hours()}")
}Output
3
pub(api) static fn fixed(offset: Dur) -> Tz | ParseErrorSince. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
offset | Dur |
Returns
Errors
ParseError@error
Effects
none declared (pure unless the body says otherwise)
Defined in: std/time/time.oxl:769