TIMEW-DATES(7)
π TIMEW-DATES(7) β User Manuals π
Okay bestie, this is the timew-dates page: date formats supported by Timewarrior. Itβs giving ISO-8601 main character energy, and weβre gonna go through every single format together. π«Ά
πΈ NAME πΈ
timew-dates β date formats supported by Timewarrior
β¨ SYNOPSIS β¨
The original SYNOPSIS is literally empty, bestie β this page is a reference for date formats, not a command invocation.
π DESCRIPTION π
Timewarrior supports the following datetime formats based on ISO-8601. If times are followed by a 'Z', they are assumed to be in UTC, otherwise local time (TZ) is assumed.
<extended-date> [T <extended-time>] Extended date, optional extended time
<date> [T <time>] Date, optional time
<extended-time> Extended time
<time> Time
π¦ extended-date π¦
YYYY-MM-DDβ Year, month, dayYYYY-MMβ Year, month, 1stYYYY-DDDβ Year, Julian day 001-366YYYY-WwwDβ Year, week number, day numberYYYY-Wwwβ Year, week number, day 1
π¦ extended-time π¦
hh:mm[:ss]Zβ Hours, minutes, optional seconds, UTChh:mm[:ss][+/-hh:mm]β Hours, minutes, optional seconds, TZ
π¦ date π¦
YYYYMMDDβ Year, month, dayYYYYWwwβ Year, week number, day numberYYYYDDDβ Year, Julian day 001-366
π¦ time π¦
hhmm[ss]Zβ Hour, minutes, optional seconds, UTChhmm[ss][+/-hh[mm]]β Hour, minutes, optional seconds, TZ
π EXAMPLES π
Here are some examples for ISO datetimes:
2016-06-09T08:12:00Z
2016-06T08:12:00+01:00
2016-06T08:12Z
2016-161
2016-W244
2016-W24
20160609T081200Z
2016W24
8:12:00Z
0812-0500
In addition to the standard date formats, the following named dates are supported:
π named dates π
nowβ Current date and timetodayβ Current date at 0:00:00yesterdayβ Yesterday at 0:00:00tomorrowβ Tomorrow at 0:00:00 (midnight tonight)<day-of-week>β Previous named day at 0:00:00<month-of-year>β Previous 1st of the month at 0:00:00hh:mm[:ss][am|a|pm|p]β Short time formatNst,Nnd,Nrd,Nthβ Previous 1st, 2nd, 3rd ...<epoch>β POSIX time (at least 315532800)laterβ 2038-01-18T0:00:00 (Y2K38)somedayβ 2038-01-18T0:00:00 (Y2K38)sopd,eopdβ Start/end of previous daysod,eodβ Start/end of current daysond,eondβ Start/end of next daysopw,eopwβ Start/end of previous weeksow,eowβ Start/end of current weeksonw,eonwβ Start/end of next weeksopww,eopwwβ Start/end of previous work week (mon - fri)soww,eowwβ Start/end of current work week (mon - fri)sonww,eonwwβ Start/end of next work week (mon - fri)sopm,eopmβ Start/end of previous monthsom,eomβ Start/end of current monthsonm,eonmβ Start/end of next monthsopq,eopqβ Start/end of previous quartersoq,eoqβ Start/end of current quartersonq,eonqβ Start/end of next quartersopy,eopyβ Start/end of previous yearsoy,eoyβ Start/end of current yearsony,eonyβ Start/end of next yeareasterβ Easter Sundayeastermondayβ Easter Mondayascensionβ Ascensionpentecostβ Pentecostgoodfridayβ Good Fridaymidsommarβ midnight, 1st Saturday after 20th Junemidsommaraftonβ midnight, 1st Friday after 19th Junejuhannusβ midnight, 1st Friday after 19th June
For times, the following are also possible:
8am24thmondayaugust
π«Ά NOTES π«Ά
Okay, important caveat time. The minimum value for the POSIX time format of 315532800 (that is 1980-01-01) was chosen to avoid confusion with ISO dates in the YYYYMMDD format.
Because named dates are defined with time 0:00:00, using them as range end excludes the respective day. E.g. using 'today' as upper range
$ timew sum 2d before today
will not show any intervals of the current day. Use either 'now' or 'tomorrow' in this case:
$ timew sum 2d before now
$ timew sum 2d before tomorrow
π SEE ALSO π
timew-durations(7), timew-hints(7) β go read these next, bestie.
π Thatβs the whole page β brought to you by timew 1.9.1, dated 2025-11-02, and itβs literally TIMEW-DATES(7). Periodt. π
π¦ where this page comes from
- ubuntu resolute: timewarrior 1.9.1+ds.1-1 Β· MIT
- ubuntu stonking: timewarrior 1.9.1+ds.1-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms