Display time since message sent

Hi all,

I’m trying to add a messaging section to my app based on the ‘Aloha’ tutorial, and I’d love it if it could display the time since the message was sent, e.g. 3s or 4m or 5h or 2d, etc.
I can give more details if anyone would like.