method Tz.isDstAt
True when daylight saving time is in effect at t.
Example:
use std.time { Time }
fn main() io {
let tz = tz"Europe/Berlin"
print("{tz.isDstAt(Time.ofUnixSeconds(1783000000))} {tz.isDstAt(Time.ofUnixSeconds(1798000000))}")
}Output
true false
pub(api) fn isDstAt(t: Tm) -> boolSince. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
t | Tm |
Returns
bool
Effects
none declared (pure unless the body says otherwise)
Defined in: std/time/time.oxl:806