[patch] Add a 'weeks' fidelity for timesince/timeuntil
|Reported by:||Owned by:||Adrian Holovaty|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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.
>> 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.