|
OMS (v3.0.25) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oms3.util.Times
public class Times
Field Summary | |
---|---|
static int |
CALENDAR_YEAR
Calendar year (Jan 1st - Dec 31st) |
static long |
EPOCH_UNIX_ERA_DAY
Value to add to the day number returned by this calendar to find the Julian Day number. |
protected static long |
MILLISECS_PER_DAY
Number of leap seconds per day expect on 1. |
static long |
MILLISECS_PER_HOUR
Number of milliseconds per hour, except when a leap second is inserted. |
static long |
MILLISECS_PER_MINUTE
All minutes have this many milliseconds except the last minute of the day on a day defined with a leap second. |
static int |
SOLAR_YEAR
Solar year (Dec 21st - Dec20th). |
static int |
WATER_YEAR
Water year (Oct 1st - Sept 31st) |
Constructor Summary | |
---|---|
Times()
|
Method Summary | |
---|---|
static double |
deltaHours(int calUnit,
int increments)
This used to be 'deltim' in MMS. |
static long |
diffDayPeriods(java.util.Calendar start,
java.util.Calendar end)
find the number of days from this date to the given end date. |
static int |
getDayOfYear(java.util.Calendar cal,
int type)
Get the Day of the year in WATER, SOLAR, or CALENDAR year. |
static long |
getJulianDay(java.util.Calendar cal)
|
static long |
getUnixDay(java.util.Calendar cal)
|
static boolean |
isLeapYear(int year)
Check if a year is a leap year. |
static void |
setSerialDate(java.util.Calendar cal,
double serialDate)
Set a calendar object to a serial date value. |
static double |
toSerialDate(java.util.Calendar cal)
Convert a calendar to a serial date value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SOLAR_YEAR
public static final int WATER_YEAR
public static final int CALENDAR_YEAR
public static final long MILLISECS_PER_MINUTE
public static final long MILLISECS_PER_HOUR
protected static final long MILLISECS_PER_DAY
public static final long EPOCH_UNIX_ERA_DAY
Constructor Detail |
---|
public Times()
Method Detail |
---|
public static long getUnixDay(java.util.Calendar cal)
cal
-
public static long getJulianDay(java.util.Calendar cal)
public static long diffDayPeriods(java.util.Calendar start, java.util.Calendar end)
end
- - any Calendar representing the moment of time at the end of the interval for calculation.public static boolean isLeapYear(int year)
year
- the calendar year to check
public static int getDayOfYear(java.util.Calendar cal, int type)
public static double toSerialDate(java.util.Calendar cal)
cal
- the calendar object
public static void setSerialDate(java.util.Calendar cal, double serialDate)
cal
- the calendar to set the valueserialDate
- the serial date to applypublic static double deltaHours(int calUnit, int increments)
|
OMS (v3.0.25) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |