API Overview
API Index
Package Overview
Direct link to this page
JavaOnTracks 0.1.2
net.jot.scheduler.
JOTClock
View Source
Author(s)
tcolar
Since
Version
Serial
Hierarchy
Object
JOTClock
Implements
Subclasses
See DIRECT subclasses
Quick Links:
Constructors
Methods
Fields
NestedClasses
Description
public
class JOTClock
Collection of utilities related to Date/Time
See also:
Constructors
public
JOTClock
()
Methods
Hide/Show inherited methods
public
static
Date
getCurrentDate
()
Gets the current Date
Gets the current Date
Returns:
The currentDate value
Since:
public
static
long
getCurrentTime
()
Gets the current Time in ms since 1970
Gets the current Time in ms since 1970
Returns:
The currentTime value
Since:
public
static
String
getDateString
()
Same, but without milliseconds
Same, but without milliseconds
Returns:
public
static
String
getDateStringWithMs
()
return the date in a fomat containing no spaces, mainly used as part of file names
return the date in a fomat containing no spaces, mainly used as part of file names
Returns:
public
static
int
getField
(
int
field)
public
static
Calendar
getNow
()
public
static
Date
parseDateString
(
String
s) throws
ParseException
parse a date string created by getDateString of getDateStringWithMs back into a Date object
parse a date string created by getDateString of getDateStringWithMs back into a Date object
Returns:
Parameters:
-
s
-
Throws:
-
java.text.ParseException
-
Fields
Hide/Show inherited fields
public
final
static
DateFormat
TIMESTAMP_FORMAT
public
final
static
Pattern
TIMESTAMP_PATTERN
public
final
static
DateFormat
TIMESTAMP_WITH_MS_FORMAT
Nested Classes
Generated By:
JavaOnTracks Doclet
0.1.5 ©Thibaut Colar