|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ghasemkiani.util.PersianCalendarUtils
This class contains some utility functions and constants used by other Persian Calendar classes.
Field Summary | |
---|---|
static long |
EPOCH
Julian day corresponding to 1 Farvardin 1 A.H., corresponding to March 19, 622 A.D. by the Julian version of the Gregorian calendar. |
Constructor Summary | |
---|---|
PersianCalendarUtils()
|
Method Summary | |
---|---|
static int |
d(long r)
Extracts the day from a packed long value. |
static long |
div(double a,
double b)
An integer division function suitable for our purpose. |
static int |
m(long r)
Extracts the month from a packed long value. |
static long |
mod(double a,
double b)
A modulo function suitable for our purpose. |
static long |
y(long r)
Extracts the year from a packed long value. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long EPOCH
Constructor Detail |
---|
public PersianCalendarUtils()
Method Detail |
---|
public static long mod(double a, double b)
a
- the dividend.b
- the divisor.
public static long div(double a, double b)
a
- the dividend.b
- the divisor.
public static long y(long r)
r
- the packed long value.
public static int m(long r)
r
- the packed long value
.
public static int d(long r)
r
- the packed long value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |