skip to the page
superthread
componentstime-words
system
superthread
version
2.15.1
date
24.11.26

time-words

pure formatters for the time a ship prints: since friday, before 11:00, 48 min until standup, every day at 07:00.

bunx --bun shadcn@latest add @mk/time-words

since

sinceWords(from, now) names the day something started. the examples on this page read the clock at 10:12 on sunday 1 november in amsterdam. the weekday holds for six days, then the date takes over, and the year joins it once it differs. a plain date like 2026-10-30 is the same day in every zone.

light

this morning
today
saturday
since yesterday
friday
since friday
9 october
since 9 oct
last october
since 26 oct 2025

dark

this morning
today
saturday
since yesterday
friday
since friday
9 october
since 9 oct
last october
since 26 oct 2025

before

beforeWords(at) prints the 24-hour clock in the reader’s zone, so the same 10:00 utc reads differently in amsterdam. a server rendering for someone else passes timeZone. a plain date has no clock face, so it prints the date.

light

amsterdam
before 11:00
utc
before 10:00
a plain date
before 2 nov

dark

amsterdam
before 11:00
utc
before 10:00
a plain date
before 2 nov

clock and date

clockWords(at) prints a time on its own, for a row or a timeline. dateWords(moment) names the day it falls on in the reader’s zone, and monthWords(moment) its month. a plain date has no clock face, so the clock prints the date.

light

clock, a moment
09:30
clock, a plain date
2 nov
date, a moment
tue 3 nov
date, a plain date
mon 2 nov
month, a moment
november 2026

dark

clock, a moment
09:30
clock, a plain date
2 nov
date, a moment
tue 3 nov
date, a plain date
mon 2 nov
month, a moment
november 2026

until

untilWords(at, what, now) counts down to something named. a part minute rounds up, so the words match the difference between the two clock faces, and the thing reads as now once its moment arrives. a plain date counts days in the reader’s zone, and reads as now once its day starts.

light

11:00
48 min until standup
11:32
1 h 20 until standup
12:12
2 h until standup
10:00
standup now
wednesday
3 days until the deadline
today
the deadline now

dark

11:00
48 min until standup
11:32
1 h 20 until standup
12:12
2 h until standup
10:00
standup now
wednesday
3 days until the deadline
today
the deadline now

schedule

scheduleWords(schedule) says what repeats. an app turns its own schedule format into a Schedule first, so no cron or rule string reaches the words. a schedule set in another zone says so, and a list with no days reads as never.

light

daily
every day at 07:00
weekdays
every weekday at 18:30
two days
every monday and thursday at 07:15
hourly
every hour
new york
every day at 07:00, new york time
no days
never

dark

daily
every day at 07:00
weekdays
every weekday at 18:30
two days
every monday and thursday at 07:15
hourly
every hour
new york
every day at 07:00, new york time
no days
never

in a row

the words sit in a row’s meta line.

light

dark