Il 22 febbraio 2012 15:17, Massimo Di Pierro <[email protected]> ha scritto: > I did. I can improve it. The goal was to approximate the time, not be > accurate. How precise does it need to be? That is a question for an additional arg:
prettydate(date, precision) precision in ['year', 'month', 'week', 'day', 'hour'] or 'auto' 'auto' gets the largest unit of time <= now - date mic

