Package weka.core
Class Debug.Timestamp
java.lang.Object
weka.core.Debug.Timestamp
- All Implemented Interfaces:
Serializable
,RevisionHandler
- Enclosing class:
- Debug
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.
- Version:
- $Revision: 8034 $
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptioncreates a timestamp with the current date and time and the default format.creates a timestamp with the current date and time and the specified format.creates a timestamp with the given date and the default format.creates a timestamp with the given date and format. -
Method Summary
-
Field Details
-
DEFAULT_FORMAT
the default format- See Also:
-
-
Constructor Details
-
Timestamp
public Timestamp()creates a timestamp with the current date and time and the default format. -
Timestamp
creates a timestamp with the current date and time and the specified format.- Parameters:
format
- the format of the timestamp- See Also:
-
Timestamp
creates a timestamp with the given date and the default format.- Parameters:
stamp
- the associated date/time for the timestamp
-
Timestamp
creates a timestamp with the given date and format.- Parameters:
stamp
- the associated date/time for the timestampformat
- the format of the timestamp- See Also:
-
-
Method Details
-
setFormat
sets the format for the timestamp- Parameters:
value
- the format string- See Also:
-
getFormat
returns the current timestamp format- Returns:
- the current format
-
getStamp
returns the associated date/time- Returns:
- the timestamp value
-
toString
returns the timestamp as string in the specified format -
getRevision
Returns the revision string.- Specified by:
getRevision
in interfaceRevisionHandler
- Returns:
- the revision
-