Page MenuHomePhabricator

templatefilters: add `reldate` for human-style relative dates
AbandonedPublic

Authored by phillco on Aug 13 2017, 11:06 PM.

Details

Reviewers
None
Group Reviewers
hg-reviewers
Summary

e.g., "3 days ago", "6 hours ago", etc.

Very helpful in, e.g., Facebook's smartlog view:

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

phillco created this revision.Aug 13 2017, 11:06 PM
phillco edited the summary of this revision. (Show Details)Aug 14 2017, 1:50 AM

There's already a date|age template feature that does this.

Heh, whoops. It didn't come up for searches of "relative" or "relative date".

I'll abandon this revision but the one right before it is probably still worth including.

phillco abandoned this revision.Aug 14 2017, 3:55 PM