OxL Reference

method ZonedTime.isDst

Whether daylight saving time is in force at this instant.

Example:

oxl✓ checked in CI
use std.time { Time }

fn main() io {
  print("{Time.ofUnixSeconds(1783000000).in(tz"Europe/Berlin").isDst()}")
}
Output
true
pub(api) fn isDst() -> bool

Since. 1.0.0-beta

Returns

bool

Effects

none declared (pure unless the body says otherwise)

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

See also