timemod

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2026 License: MIT Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL