Make date object print out human-readable relative timestamp

  • Tags: date
  • Latest: 0.1
  • Last Updated: 03 September 2009
  • Grails version: 1.1 > *
  • Authors: null
0 vote
Dependency:
compile ":pretty-date:0.1"

 Documentation

Summary

Installation

grails install-plugin pretty-date

Description

Simplest date beautifier.

Usage:

def d = new Date() 
 d.prettyDate() //prints "moments ago"