OxL Reference

method Tz.isDstAt

True when daylight saving time is in effect at t.

Example:

oxl✓ checked in CI
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) -> bool

Since. 1.0.0-beta

Parameters

NameType
tTm

Returns

bool

Effects

none declared (pure unless the body says otherwise)

Defined in: std/time/time.oxl:806

See also