public class Dates
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DAYS_IN_4_YEARS |
static int |
DAYS_IN_400_YEARS |
static int |
FEB_29 |
static long |
JAN_1_1600 |
static int |
MONTH_AND_DAY_MASK |
static long |
MS_IN_DAY |
static java.util.TimeZone |
TIME_ZONE |
| Constructor and Description |
|---|
Dates() |
| Modifier and Type | Method and Description |
|---|---|
static long |
asLocal(long millis) |
static int |
dateOfMillis(long millis) |
static int |
day(int date) |
static int |
dayNum(long millis) |
static int |
daysBetween(long fromMillis,
long toMillis) |
static int |
daysInMonth(int month,
int year) |
static int |
encode(int year,
int month,
int day) |
static boolean |
isLeapYear(int year) |
static int |
month(int date) |
static int |
year(int date) |
static int |
yearsBetween(long fromMillis,
long toMillis) |
public static final java.util.TimeZone TIME_ZONE
public static final long JAN_1_1600
public static final long MS_IN_DAY
public static final int DAYS_IN_400_YEARS
public static final int DAYS_IN_4_YEARS
public static final int MONTH_AND_DAY_MASK
public static final int FEB_29
public static int encode(int year,
int month,
int day)
public static int year(int date)
public static int month(int date)
public static int day(int date)
public static boolean isLeapYear(int year)
public static int daysInMonth(int month,
int year)
public static long asLocal(long millis)
public static int dayNum(long millis)
public static int dateOfMillis(long millis)
public static int yearsBetween(long fromMillis,
long toMillis)
public static int daysBetween(long fromMillis,
long toMillis)