public class PersianCalendarUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
EPOCH
Julian day corresponding to 1 Farvardin 1 A.H., corresponding to
March 19, 622 A.D.
|
| Constructor and Description |
|---|
PersianCalendarUtils() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final long EPOCH
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.Copyright © 2015. All Rights Reserved.