public class mjDate extends Object
Constructor and Description |
---|
mjDate(int yr,
int diy)
Modified Julian Date
|
mjDate(int yr,
int mn,
int d)
Modified Julian Date
|
mjDate(int yr,
int mn,
int d,
double fract)
Modified Julian Date
|
Modifier and Type | Method and Description |
---|---|
int |
getDay()
Get day
|
int |
getDayinYear()
Get day in year
|
double |
getFraction()
Get fraction
|
int |
getFraction(int n)
Get fraction as integer number of places.
|
int |
getMonth()
Get month
|
int |
getYear()
Get year
|
String |
toString()
return date as string
|
String |
toString(int n)
return date as string to required precision
|
public mjDate(int yr, int mn, int d) throws palError
yr
- Yearmn
- Monthd
- DaypalError
public mjDate(int yr, int mn, int d, double fract) throws palError
yr
- Yearmn
- Monthd
- Dayfract
- Fraction of daypalError
public int getYear()
public int getMonth()
public int getDay()
public int getFraction(int n)
public double getFraction()
public int getDayinYear()
public String toString(int n)
n
- Number of decimal places in fractionCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.