org.openprivacy.reptile.extensions
Class TimeStamp
java.lang.Object
|
+--org.openprivacy.reptile.extensions.TimeStamp
- public class TimeStamp
- extends java.lang.Object
- Version:
- $Id: TimeStamp.java,v 1.9 2002/02/08 02:55:24 burton Exp $
- Author:
- Kevin A. Burton
|
Method Summary |
java.lang.String |
get()
|
java.lang.String |
get(long date)
Get a timestamp via a string representing the date which should represent
the number of milliseconds to display. |
java.lang.String |
get(java.lang.String longDate)
|
java.lang.String |
get(org.apache.xalan.extensions.XSLProcessorContext context,
org.apache.xalan.templates.ElemExtensionCall elem)
Get a timestamp. |
java.lang.String |
interval(org.apache.xalan.extensions.XSLProcessorContext context,
org.apache.xalan.templates.ElemExtensionCall elem)
Render an interval as a timestamp. |
java.lang.String |
time_since(org.apache.xalan.extensions.XSLProcessorContext context,
org.apache.xalan.templates.ElemExtensionCall elem)
Return the amount of time since the given interval. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimeStamp
public TimeStamp()
get
public java.lang.String get(org.apache.xalan.extensions.XSLProcessorContext context,
org.apache.xalan.templates.ElemExtensionCall elem)
- Get a timestamp.
get
public java.lang.String get()
- See Also:
get(long)
get
public java.lang.String get(java.lang.String longDate)
- See Also:
get(long)
get
public java.lang.String get(long date)
- Get a timestamp via a string representing the date which should represent
the number of milliseconds to display.
interval
public java.lang.String interval(org.apache.xalan.extensions.XSLProcessorContext context,
org.apache.xalan.templates.ElemExtensionCall elem)
- Render an interval as a timestamp.
Result will be in the form of
4 minute(s), and 48 second(s)
Example:
time_since
public java.lang.String time_since(org.apache.xalan.extensions.XSLProcessorContext context,
org.apache.xalan.templates.ElemExtensionCall elem)
- Return the amount of time since the given interval.
Result will be in the form of
4 minute(s), and 48 second(s)
Example: