public class TimeUtils
extends java.lang.Object
| Constructor and Description |
|---|
TimeUtils() |
| Modifier and Type | Method and Description |
|---|---|
static javax.xml.datatype.Duration |
calculateDuration(java.util.GregorianCalendar start,
java.util.GregorianCalendar end)
Calculates the Duration between two GregorianCalendar dates.
|
static javax.xml.datatype.Duration |
createDuration(java.lang.String durationString)
Creates the duration.
|
static java.util.TimeZone |
getNoTimeZoneTimeZone()
Returns the time zone assigned to dates that has no specific time zone.
|
static java.util.GregorianCalendar |
normalizeTimeZone(java.util.GregorianCalendar calendar)
This method removes time zone information from an instance of a GregorianCalendar and makes it
usable for the XBRL API.
|
static java.lang.String |
toTime(long timeMillis)
Display the amount of time indicated in milliseconds as one string
according to locale.
|
public static java.util.GregorianCalendar normalizeTimeZone(java.util.GregorianCalendar calendar)
calendar - input instance of GregorianCalendar the time zone will be removedpublic static java.util.TimeZone getNoTimeZoneTimeZone()
public static javax.xml.datatype.Duration calculateDuration(java.util.GregorianCalendar start,
java.util.GregorianCalendar end)
start - as a GregorianCalendarend - as a GregorianCalendarpublic static javax.xml.datatype.Duration createDuration(java.lang.String durationString)
durationString - the duration stringpublic static java.lang.String toTime(long timeMillis)
timeMillis - the time millis