Core & system · BUILT-IN MODULE

time

SE Time value helpers.

Quick start

use time
use time

now = time.now
say time.iso now
say time.unix now

API reference

time.now

Return the current Time value.

回傳目前的 Time 值。
time.unix time

Convert Time to a Unix timestamp.

將 Time 轉換成 Unix timestamp。
time.from_unix timestamp

Convert a Unix timestamp to Time.

將 Unix timestamp 轉換成 Time。
time.iso time

Format Time as UTC ISO-8601.

將 Time 格式化為 UTC ISO-8601。