|
mhuss utils 1.1.5ws | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mhuss.AstroLib.TimeOps
public class TimeOps
TimeOps contains miscellaneous time-related functions.
These are not in DateOps because they cause a circular dependancy
between DateOps and AstroDate
| Constructor Summary | |
|---|---|
TimeOps()
|
|
| Method Summary | |
|---|---|
static int |
dstOffset()
Calculate the current Daylight Time offset. |
static int |
dstOffset(java.util.Calendar cal)
Calculate the current Daylight Time offset ( 0 or -1 ). |
static double |
dstOffsetInDays()
Calculate the current Daylight Time offset in fractional days. |
static double |
dstOffsetInDays(java.util.Calendar cal)
Calculate the current Daylight Time offset in fractional days. |
static java.lang.String |
formatTime(double t)
Format a time as a String using the format HH:MM. |
static int |
tzOffset()
Determine the absolute time zone offset from UTC in hours (-12 to +12) using the local timezone. |
static int |
tzOffset(java.util.Calendar cal)
Determine the absolute time zone offset from UTC in hours (-12 to +12) for the spec'd Calendar. |
static double |
tzOffsetInDays()
Determine the absolute time zone offset from UTC in fractional days (-0.5 to +0.5). |
static double |
tzOffsetInDays(java.util.Calendar cal)
Determine the absolute time zone offset from UTC in fractional days (-0.5 to +0.5). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimeOps()
| Method Detail |
|---|
public static int dstOffset(java.util.Calendar cal)
cal - A java.util.Calendar object which is used to
get the DST_OFFSET
from (e.g., java.util.GregorianCalendar)
public static int dstOffset()
public static double dstOffsetInDays(java.util.Calendar cal)
cal - A java.util.Calendar object which is used to
get the DST_OFFSET
public static double dstOffsetInDays()
public static int tzOffset(java.util.Calendar cal)
cal - The Calendar to use
public static int tzOffset()
public static double tzOffsetInDays(java.util.Calendar cal)
cal - The Calendar to use
public static double tzOffsetInDays()
public static java.lang.String formatTime(double t)
t - The time to format in days
|
mhuss utils 1.1.5ws | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||