Skip to content

Relative times

Created by: Anonymous

It would be nice to display future times as "in 3 days, 2 hours, ..." and past times as "60 minutes ago, ...". However, this is way more tricky than what it sounds.

There's an old humanize package that gives us past times. It hasn't been updated for a few years though. Here's a SO page about it. Doing the past times seems to be easier than future times.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information