method ZonedTime.date
The date on the wall clock of the zone.
Example:
use std.time { Time }
fn main() io {
print("{Time.ofUnixSeconds(0).in(tz"Pacific/Auckland").date().toIso()}")
}Вывод
1970-01-01
pub(api) fn date() -> DateС версии. 1.0.0-beta
Возвращает
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/time/time.oxl:2231