xsl
Class TimeFormat

java.lang.Object
  extended by xsl.TimeFormat

public class TimeFormat
extends java.lang.Object

Tool for easy display of time, including time since

Author:
andy

Nested Class Summary
static class TimeFormat.Since
           
 
Constructor Summary
TimeFormat(long time)
           
TimeFormat(long time, boolean showSince)
           
 
Method Summary
static java.lang.String format(long time, java.lang.String pattern)
           
 java.lang.String getDate()
           
 TimeFormat.Since getSince()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimeFormat

public TimeFormat(long time,
                  boolean showSince)

TimeFormat

public TimeFormat(long time)
Method Detail

getDate

public java.lang.String getDate()

getSince

public TimeFormat.Since getSince()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

format

public static java.lang.String format(long time,
                                      java.lang.String pattern)