mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
remove many duration strings to simplify
This commit is contained in:
parent
0259a5e2e2
commit
b18701c3cb
2 changed files with 9 additions and 78 deletions
|
@ -3,10 +3,10 @@
|
|||
Times may be specified in a wide variety of convenient formats.
|
||||
|
||||
* [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) timestamps, such as `2019-10-12 07:20:50.12Z`
|
||||
* A date of the format `YYYY-MM-DD` is interpreted as _local_ midnight on the given date.
|
||||
* A date of the format `YYYY-MM-DD` is interpreted as the _local_ midnight at the beginning of the given date.
|
||||
Single-digit month and day are accepted, but the year must contain four digits.
|
||||
* `now` refers to the exact current time
|
||||
* `yesterday`, `today`, and `tomorrow` refer to _local_ midnight on the given day
|
||||
* `yesterday`, `today`, and `tomorrow` refer to the _local_ midnight at the beginning of the given day
|
||||
* Any duration (described below) may be used as a timestamp, and is considered relative to the current time.
|
||||
|
||||
Times are stored internally as UTC.
|
||||
|
@ -18,19 +18,13 @@ Each can be preceded by a whole number or a decimal multiplier, e.g., `3days`.
|
|||
The multiplier is optional with the singular forms of the units; for example `day` is allowed.
|
||||
Some of the units allow an adjectival form, such as `daily` or `annually`; this form is more readable in some cases, but otherwise has the same meaning.
|
||||
|
||||
* `s`, `sec`, `secs`, `second`, or `seconds`
|
||||
* `min`, `mins`, `minute`, or `minutes` (note that `m` is a month!)
|
||||
* `h`, `hr`, `hrs`, `hour`, or `hours`
|
||||
* `d`, `day`, `days`, `daily`, or `weekdays` (note, weekdays includes weekends!)
|
||||
* `w`, `wk`, `wks`, `week`, `weeks`, or `weekly`
|
||||
* `biweekly`, `fornight` or `sennight` (14 days)
|
||||
* `m`, `mo`, `mos`, `mth`, `mths`, `mnths`, `month`, `months`, or `monthly` (always 30 days, regardless of calendar month)
|
||||
* `binmonthly` (61 days)
|
||||
* `q`, `qtr`, `qtrs`, `qrtr`, `qrtrs`, `quarter`, `quarters`, or `quarterly` (91 days)
|
||||
* `semiannual` (183 days)
|
||||
* `y`, `yr`, `yrs`, `year`, `years`, `yearly`, or `annual` (365 days, regardless of leap days)
|
||||
* `biannual` or `biyearly` (730 days)
|
||||
* `s`, `second`, or `seconds`
|
||||
* `min`, `mins`, `minute`, or `minutes` (note that `m` not allowed, as it might also mean `month`)
|
||||
* `h`, `hour`, or `hours`
|
||||
* `d`, `day`, or `days`
|
||||
* `w`, `week`, or `weeks`
|
||||
* `mo`, or `months` (always 30 days, regardless of calendar month)
|
||||
* `y`, `year`, or `years` (365 days, regardless of leap days)
|
||||
|
||||
[ISO 8601 standard durations](https://en.wikipedia.org/wiki/ISO_8601#Durations) are also allowed.
|
||||
While the standard does not specify the length of "P1Y" or "P1M", Taskchampion treats those as 365 and 30 days, respectively.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue