duration
an amount of time
1# duration: an amount of time21h30m90 min3# between two dates4date("2027-01-01") - date("2026-12-25")7 dExample outputCtrl+Enter to run
syntax
Section titled “syntax”1# date + or - a duration moves it2now + 90 min2026-11-04 13:42:41 -06:00Example outputCtrl+Enter to run
Functions that take it
Section titled “Functions that take it”diffwhat changed from text a to b, line by line, or nil if nothing diddiffwhat changed from bytes a to b, by hex dump row, or nil if nothing didagehow many whole years have passed since d, as for someone’s age from their birthdaydiffthe time from a to b in calendar termsrelativehow far the date is from now, in words like “in 3 days” or “2 hours ago”partsa duration split into the largest units that fit, up to three of days, hours, minutes and secondshmsa duration as clock text, like 7:15:00, with hours that can pass 24
Example results generated on 2026-11-04. Ones using now, today or randomness will differ when you run them.