RelativeTime extension

Adds relative time support.

This plugin includes four methods: from, fromNow, to, toNow. All of them can help you to format date to a relative time string.

on

Methods

from(Day day, [bool withoutSuffix = false]) String
Returns the string of relative time from day.
fromNow([bool withoutSuffix = false]) String
Returns the string of relative time from now.
to(Day day, [bool withoutPrefix = false]) String
Returns the string of relative time to day.
toNow([bool withoutPrefix = false]) String
Returns the string of relative time to now.