lazyj.page.tags
Class NiceDate

java.lang.Object
  extended by lazyj.page.tags.NiceDate
All Implemented Interfaces:
StringFormat

public final class NiceDate
extends java.lang.Object
implements StringFormat

nicedate translates the value (a date) into a nice human readable form.

Since:
2006-10-13
Author:
costing
See Also:
Date, Time

Constructor Summary
NiceDate()
           
 
Method Summary
 java.lang.String format(java.lang.String sTag, java.lang.String sOption, java.lang.String s)
          Transform a date into something user-friendly ("today", "yesterday" ...)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NiceDate

public NiceDate()
Method Detail

format

public java.lang.String format(java.lang.String sTag,
                               java.lang.String sOption,
                               java.lang.String s)
Transform a date into something user-friendly ("today", "yesterday" ...)

Specified by:
format in interface StringFormat
Parameters:
sTag - tag name, ignored
sOption - always "nicedate"
s - date representation
Returns:
nice representation of the given date
See Also:
Format.showNiceDate(java.util.Date), Format.parseDate(String)