Allow custom defined relative time format.

Add a new func to allow user to customize units and output format
for relative time.
2 files changed