method ZonedTime.offset
Offset from UTC at this instant.
Example:
use std.time { Time }
fn main() io {
print("{Time.ofUnixSeconds(0).in(tz"Asia/Tokyo").offset().hours()}")
}Вывод
9
pub(api) fn offset() -> DurС версии. 1.0.0-beta
Возвращает
Dur
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/time/time.oxl:2175