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, day
  • YYYY-MM β€” Year, month, 1st
  • YYYY-DDD β€” Year, Julian day 001-366
  • YYYY-WwwD β€” Year, week number, day number
  • YYYY-Www β€” Year, week number, day 1

πŸ¦‹ extended-time πŸ¦‹

  • hh:mm[:ss]Z β€” Hours, minutes, optional seconds, UTC
  • hh:mm[:ss][+/-hh:mm] β€” Hours, minutes, optional seconds, TZ

πŸ¦‹ date πŸ¦‹

  • YYYYMMDD β€” Year, month, day
  • YYYYWww β€” Year, week number, day number
  • YYYYDDD β€” Year, Julian day 001-366

πŸ¦‹ time πŸ¦‹

  • hhmm[ss]Z β€” Hour, minutes, optional seconds, UTC
  • hhmm[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 time
  • today β€” Current date at 0:00:00
  • yesterday β€” Yesterday at 0:00:00
  • tomorrow β€” 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:00
  • hh:mm[:ss][am|a|pm|p] β€” Short time format
  • Nst, 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 day
  • sod, eod β€” Start/end of current day
  • sond, eond β€” Start/end of next day
  • sopw, eopw β€” Start/end of previous week
  • sow, eow β€” Start/end of current week
  • sonw, eonw β€” Start/end of next week
  • sopww, 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 month
  • som, eom β€” Start/end of current month
  • sonm, eonm β€” Start/end of next month
  • sopq, eopq β€” Start/end of previous quarter
  • soq, eoq β€” Start/end of current quarter
  • sonq, eonq β€” Start/end of next quarter
  • sopy, eopy β€” Start/end of previous year
  • soy, eoy β€” Start/end of current year
  • sony, eony β€” Start/end of next year
  • easter β€” Easter Sunday
  • eastermonday β€” Easter Monday
  • ascension β€” Ascension
  • pentecost β€” Pentecost
  • goodfriday β€” Good Friday
  • midsommar β€” midnight, 1st Saturday after 20th June
  • midsommarafton β€” midnight, 1st Friday after 19th June
  • juhannus β€” midnight, 1st Friday after 19th June

For times, the following are also possible:

  • 8am
  • 24th
  • monday
  • august

🫢 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