public static class Debug.Timestamp extends java.lang.Object implements java.io.Serializable, RevisionHandler
SimpleDateFormat,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_FORMAT
the default format
|
| Constructor and Description |
|---|
Timestamp()
creates a timestamp with the current date and time and the default
format.
|
Timestamp(java.util.Date stamp)
creates a timestamp with the given date and the default format.
|
Timestamp(java.util.Date stamp,
java.lang.String format)
creates a timestamp with the given date and format.
|
Timestamp(java.lang.String format)
creates a timestamp with the current date and time and the specified
format.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFormat()
returns the current timestamp format
|
java.lang.String |
getRevision()
Returns the revision string.
|
java.util.Date |
getStamp()
returns the associated date/time
|
void |
setFormat(java.lang.String value)
sets the format for the timestamp
|
java.lang.String |
toString()
returns the timestamp as string in the specified format
|
public static final java.lang.String DEFAULT_FORMAT
public Timestamp()
public Timestamp(java.lang.String format)
format - the format of the timestampSimpleDateFormatpublic Timestamp(java.util.Date stamp)
stamp - the associated date/time for the timestamppublic Timestamp(java.util.Date stamp,
java.lang.String format)
stamp - the associated date/time for the timestampformat - the format of the timestampSimpleDateFormatpublic void setFormat(java.lang.String value)
value - the format stringSimpleDateFormatpublic java.lang.String getFormat()
public java.util.Date getStamp()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getRevision()
getRevision in interface RevisionHandler