fn now
Current UTC time (§17.3); same as the prelude now.
Example:
use std.time { now }
fn main() io, time {
print("{now().unixSeconds() > 0}")
}Вывод
true
@intrinsic("now") pub(api) fn now() -> Tm timeС версии. 1.0.0-beta
Возвращает
Tm
Эффекты
time
Определено в: std/time/time.oxl:2118