TIMEW-DURATIONS(7)
π TIMEW-DURATIONS(7) β like, the whole entire tea on durations
okay bestie, welcome to timew-durations, aka the section of the Timewarrior user manual that explains every single way you're allowed to write a duration. yes this is the manual page for durations, yes it's a whole page, no we're not skipping any of it π«Ά
β¨ NAME β¨
timew-durations β the duration formats supported by Timewarrior, periodt. that's the whole name section, she's short but she's iconic π
πΈ SYNOPSIS πΈ
literally nothing here. no synopsis. empty. a vibe. moving on π
π¦ DESCRIPTION π¦
so Timewarrior supports these duration formats, and they're all based on ISO-8601. here's the shape of it:
'P' [nn 'Y'] [nn 'M'] [nn 'D'] ['T' [nn 'H'] [nn 'M'] [nn 'S']]
PnnW
and here's what those look like irl β¨
P1Yβ 1 yearP1.5Mβ 1.5 monthsPT1Sβ 1 secondPT4.5Hβ 4.5 hoursPT4H30Mβ 4.5 hoursP600Dβ 600 daysP3Wβ 3 weeksP1Y1DT1H1M1Sβ 1 year and 25 hours, 61 seconds (imprecise term)
π¨ okay this is important so listen up: the year and month terms are imprecise, being defined as365dand30drespectively. if you want precision, use the other terms. no cap, that's literally what it says π
π the extra formats (yes there are more, she contains multitudes)
in addition to the standard duration formats, the following are supported too:
n[.n]<unit>
where <unit> is one of these bad boys β and yes, you can spell them a bunch of different ways, we're not gonna make you memorize just one:
annualbiannualbimonthlybiweeklybiyearlydailydays,day,dfortnighthours,hour,hrs,hr,hminutes,minute,mins,minmonthly,months,month,mnths,mths,mth,mos,mo,mquarterly,quarters,quarter,qrtrs,qtr,qsemiannualsennightseconds,second,secs,sec,sweekdaysweekly,weeks,week,wks,wk,wyearly,years,year,yrs,yr,y
π examples, because examples ate
1hourβ 60 minutes1.5hβ 90 minutes3moβ 3 months10dβ 10 days
π and again, one more time for the people in the back: the year, quarter and month terms are imprecise, being defined as365d,91dand30drespectively. for precision use the other terms. fr fr, don't come for me when1monthisn't the exact number of days you wanted π
π§ sign-off
this absolute queen of a page is from timew version 1.9.1, dated 2025-11-02 β go forth and write your durations with confidence, bestie, you're gonna slay ππβ
π¦ 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