OxL Reference

method ZonedTime.timeOfDay

The time of day on the wall clock of the zone.

Example:

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

fn main() io {
  print("{Time.ofUnixSeconds(0).in(tz"Asia/Tokyo").timeOfDay().show()}")
}
Output
09:00:00
pub(api) fn timeOfDay() -> TimeOfDay

Since. 1.0.0-beta

Returns

TimeOfDay

Effects

none declared (pure unless the body says otherwise)

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

See also