Skip to main content

local_instant_nanos

Function local_instant_nanos 

Source
pub fn local_instant_nanos(instant_ns: i64, zone_name: &str) -> Option<i64>
Expand description

The local-as-UTC instant of a UTC instant in a named zone: the nanoseconds that, read back with the plain UTC calendar functions, yield the zone’s local wall-clock components. This is the lowering target for zoned component reads (the hour of m in "Asia/Tokyo"): a local clock face encoded as an instant, so every UTC extractor composes onto it unchanged. None if the zone is unknown. (Not a real instant — it is the wall clock; do not re-format it with a Z.)