|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.core.Debug.Timestamp
public static class Debug.Timestamp
A class that can be used for timestamps in files, The toString() method simply returns the associated Date object in a timestamp format. For formatting options, see java.text.SimpleDateFormat.
SimpleDateFormat,
Serialized Form| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_FORMAT
the default format |
| Constructor Summary | |
|---|---|
Debug.Timestamp()
creates a timestamp with the current date and time and the default format. |
|
Debug.Timestamp(java.util.Date stamp)
creates a timestamp with the given date and the default format. |
|
Debug.Timestamp(java.util.Date stamp,
java.lang.String format)
creates a timestamp with the given date and format. |
|
Debug.Timestamp(java.lang.String format)
creates a timestamp with the current date and time and the specified format. |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_FORMAT
| Constructor Detail |
|---|
public Debug.Timestamp()
public Debug.Timestamp(java.lang.String format)
format - the format of the timestampSimpleDateFormatpublic Debug.Timestamp(java.util.Date stamp)
stamp - the associated date/time for the timestamp
public Debug.Timestamp(java.util.Date stamp,
java.lang.String format)
stamp - the associated date/time for the timestampformat - the format of the timestampSimpleDateFormat| Method Detail |
|---|
public 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||