#1052 closed enhancement (fixed)
[patch] Add a 'weeks' fidelity for timesince/timeuntil
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Core (Other) | Version: | |
Severity: | trivial | Keywords: | utils timesince |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
timesince() / timeuntil() evaluate the difference between two dates and return an approximate answer in days, months, and years.
This patch adds a 'weeks' fidelity to the description.
For example:
>> timesince(datetime(2005,12,3), datetime(2005,12,13)) OLD: '16 days' NEW: '2 weeks, 2 days' >> timesince(datetime(2005,11,27), datetime(2005,12,13)) OLD: '10 days, 4 hours' NEW: '1 week, 3 days'
In addition to applying this patch, translations need to be regenerated and updated for the 'week'/'weeks' keywords.
Attachments (1)
Change History (3)
by , 19 years ago
Attachment: | timesince_weeks.diff added |
---|
comment:1 by , 19 years ago
Severity: | normal → trivial |
---|
comment:2 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Patch to add 'weeks' fidelity to timesince/timeuntil