|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hermit.utils.TimeUtils
public class TimeUtils
Utilities for handling and formatting dates and times.
Method Summary | |
---|---|
static java.lang.String |
formatOffset(java.util.TimeZone zone)
Produce a string describing the offset of the given time zone from UTC, including the DST offset if there is one. |
static java.lang.String |
formatOffsetFull(java.util.TimeZone zone)
Produce a string describing the offset of the given time zone from UTC, including the DST offset if there is one. |
static java.lang.String |
intervalMsToHmsShort(long off)
Format a time offset as hours, minutes and seconds, only including the relevant components. |
static java.lang.String |
timeMsToHm(long time)
Format a time of day in ms as hours and minutes, in 24-hour clock format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String timeMsToHm(long time)
time
- The time in ms to format.
public static java.lang.String intervalMsToHmsShort(long off)
off
- The time offset in ms to format.
public static java.lang.String formatOffset(java.util.TimeZone zone)
zone
- TimeZone whose offset we want.
public static java.lang.String formatOffsetFull(java.util.TimeZone zone)
zone
- TimeZone whose offset we want.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |