@Status(stage=PRODUCTION, unitTests=COMPLETE) @Review(by="Kees Schotanus", at="2009-09-28") public final class JulianDate extends Object
| Modifier and Type | Method and Description |
|---|---|
static GregorianCalendar |
getDate(int julianDay)
Converts the supplied Julian day to a Gregorian year, month and day.
|
static int |
getJulianDay(int year,
int month,
int day)
Computes the Julian day from the supplied year, month and day.
|
static int |
getJulianDay(long milliseconds)
/**
Converts the supplied time in milliseconds since the EPOCH to a Julian
date.
|
public static int getJulianDay(int year,
int month,
int day)
year - Gregorian year.
month - Ordinal month number.
1 <= month <= 12day - Ordinal day number.
1 <= day <= maximumDayForSuppliedMonthIllegalArgumentException - When one of the input parameters is out
of range.public static int getJulianDay(long milliseconds)
milliseconds - Time in milliseconds since the EPOCH.
public static GregorianCalendar getDate(int julianDay)
julianDay - The Julian day to convert.
The Julian day should not be a day before March 1 in the year 0.IllegalArgumentException - When the input Julian day represents a
day before Christ was born.Copyright © 2008–2017. All rights reserved.