|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjimm.twice.ice.DateTime
The DateTime class is a collection of methods that convert ICE DateTime strings into Date objects and Date objects into ICE Date, Time or DateTime strings.
ICE DateTimes are always in UTC (GMT). So are Date objects; how convenient!
Field Summary | |
static java.util.SimpleTimeZone |
TZ_UTC
|
Constructor Summary | |
DateTime()
|
Method Summary | |
static java.util.Date |
parseICEDateTime(java.lang.String str)
Given a string representing an ICE DateTime (which is always UTC), return a new Date object (which is also always in UTC) for that date and time. |
static java.lang.String |
timeToICEDate()
Returns the current time as an ICE Date string. |
static java.lang.String |
timeToICEDate(java.util.Date date)
Returns the specified time as an ICE Date string. |
static java.lang.String |
timeToICEDateTime()
Returns the current time as an ICE DateTime string including milliseconds. |
static java.lang.String |
timeToICEDateTime(boolean includeMillisecs)
Returns the current time as an ICE DateTime string. |
static java.lang.String |
timeToICEDateTime(java.util.Date date)
Returns the specified time as an ICE DateTime string including milliseconds. |
static java.lang.String |
timeToICEDateTime(java.util.Date date,
boolean includeMillisecs)
Returns the specified time as an ICE DateTime string. |
static java.lang.String |
timeToICETime()
Returns the specified time as an ICE Time string including milliseconds. |
static java.lang.String |
timeToICETime(java.util.Date date)
Returns the specified time as an ICE Time string including milliseconds. |
static java.lang.String |
timeToICETime(java.util.Date date,
boolean includeMillisecs)
Returns the current time as an ICE Time string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.util.SimpleTimeZone TZ_UTC
Constructor Detail |
public DateTime()
Method Detail |
public static java.lang.String timeToICEDateTime()
public static java.lang.String timeToICEDateTime(java.util.Date date)
public static java.lang.String timeToICEDateTime(boolean includeMillisecs)
includeMillisecs
- if true
, the string will include
milliseconds
public static java.lang.String timeToICEDateTime(java.util.Date date, boolean includeMillisecs)
date
- a dateincludeMillisecs
- if true
, the string will include
milliseconds
public static java.lang.String timeToICETime()
public static java.lang.String timeToICETime(java.util.Date date)
date
- a date
public static java.lang.String timeToICETime(java.util.Date date, boolean includeMillisecs)
date
- a dateincludeMillisecs
- if true
, the string will include
milliseconds
public static java.lang.String timeToICEDate()
public static java.lang.String timeToICEDate(java.util.Date date)
date
- a date
public static java.util.Date parseICEDateTime(java.lang.String str)
str
- an ICE DateTime string form; may include milliseconds
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |