|
||||||||||
| 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 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(Date stamp)
creates a timestamp with the given date and the default format. |
|
Debug.Timestamp(Date stamp,
String format)
creates a timestamp with the given date and format. |
|
Debug.Timestamp(String format)
creates a timestamp with the current date and time and the specified format. |
|
| Method Summary | |
|---|---|
String |
getFormat()
returns the current timestamp format |
String |
getRevision()
Returns the revision string. |
Date |
getStamp()
returns the associated date/time |
void |
setFormat(String value)
sets the format for the timestamp |
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 String DEFAULT_FORMAT
| Constructor Detail |
|---|
public Debug.Timestamp()
public Debug.Timestamp(String format)
format - the format of the timestampSimpleDateFormatpublic Debug.Timestamp(Date stamp)
stamp - the associated date/time for the timestamp
public Debug.Timestamp(Date stamp,
String format)
stamp - the associated date/time for the timestampformat - the format of the timestampSimpleDateFormat| Method Detail |
|---|
public void setFormat(String value)
value - the format stringSimpleDateFormatpublic String getFormat()
public Date getStamp()
public String toString()
toString in class Objectpublic String getRevision()
getRevision in interface RevisionHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||