|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.jot.scheduler.JOTClock
public class JOTClock
Collection of utilities related to Date/Time
| Field Summary | |
|---|---|
static java.text.DateFormat |
TIMESTAMP_FORMAT
|
static java.util.regex.Pattern |
TIMESTAMP_PATTERN
|
static java.text.DateFormat |
TIMESTAMP_WITH_MS_FORMAT
|
| Constructor Summary | |
|---|---|
JOTClock()
|
|
| Method Summary | |
|---|---|
static java.util.Date |
getCurrentDate()
Gets the current Date |
static long |
getCurrentTime()
Gets the current Time in ms since 1970 |
static java.lang.String |
getDateString()
Same, but without milliseconds |
static java.lang.String |
getDateStringWithMs()
return the date in a fomat containing no spaces, mainly used as part of file names |
static int |
getField(int field)
|
static java.util.Calendar |
getNow()
|
static java.util.Date |
parseDateString(java.lang.String s)
parse a date string created by getDateString of getDateStringWithMs back into a Date object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.text.DateFormat TIMESTAMP_FORMAT
public static final java.text.DateFormat TIMESTAMP_WITH_MS_FORMAT
public static final java.util.regex.Pattern TIMESTAMP_PATTERN
| Constructor Detail |
|---|
public JOTClock()
| Method Detail |
|---|
public static java.util.Date getCurrentDate()
public static int getField(int field)
public static java.util.Calendar getNow()
public static long getCurrentTime()
public static java.lang.String getDateStringWithMs()
public static java.lang.String getDateString()
public static java.util.Date parseDateString(java.lang.String s)
throws java.text.ParseException
s -
java.text.ParseException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||