Core & system · BUILT-IN MODULE
time
SE Time value helpers.
Quick start
use time
now = time.now
say time.iso now
say time.unix nowAPI reference
time.nowReturn the current Time value.
回傳目前的 Time 值。
time.unix timeConvert Time to a Unix timestamp.
將 Time 轉換成 Unix timestamp。
time.from_unix timestampConvert a Unix timestamp to Time.
將 Unix timestamp 轉換成 Time。
time.iso timeFormat Time as UTC ISO-8601.
將 Time 格式化為 UTC ISO-8601。