lazyj.page.tags
Class Time

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

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

time decodes the value into a Date object then displays only the time part of it.

Since:
2006-10-14
Author:
costing
See Also:
Date, NiceDate

Constructor Summary
Time()
           
 
Method Summary
 java.lang.String format(java.lang.String sTag, java.lang.String sOption, java.lang.String s)
          Simple tag to nicely show the time part of a date.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Time

public Time()
Method Detail

format

public java.lang.String format(java.lang.String sTag,
                               java.lang.String sOption,
                               java.lang.String s)
Simple tag to nicely show the time part of a date. The original string is first parsed into a Date object then formatted to show only the time from it.

Specified by:
format in interface StringFormat
Parameters:
sTag - tag name, ignored
sOption - always "time"
s - original date / time to display
Returns:
time representation
See Also:
Format.parseDate(String), Format.showTime(java.util.Date)