Documentation
¶
Overview ¶
Package timemod is the native module "time": the class time::Time (an instant with a time zone), and sleep.
use time;
local t = new time::Time(2026, 10, 14, 9, 30, 0); // UTC
println(t->format("%d.%m.%Y %H:%M"), t->weekday()); // 14.10.2026 09:30 3
local u = time::Time::parse("2026-12-25", "%Y-%m-%d");
println(u->sub(t) / 86400); // days until then
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Time = &native.Class{Name: "Time"}
Time is the class time::Time; its objects hold a time.Time.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.