method Tz.offsetAt
Offset from UTC at the instant t.
Example:
use std.time { Tz, Time }
fn main() io {
let tz = Tz.of("Europe/Moscow")!
print("{tz.offsetAt(Time.ofUnixSeconds(0)).hours()}")
}Output
3
pub(api) fn offsetAt(t: Tm) -> DurSince. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
t | Tm |
Returns
Dur
Effects
none declared (pure unless the body says otherwise)
Defined in: std/time/time.oxl:791