soma.cell

Time

Time, in the reference of the Soma programming language (soma 3.2.4). A block marked ✓ is a whole program that soma check accepts; the others are excerpts.

let ts = now()                // unix timestamp (seconds)
let ms = now_ms()             // milliseconds
let today = today()           // "2026-03-29"
let formatted = format_date(ts) // "2026-03-29"
sleep(100)                    // pause 100 milliseconds