public class Dates extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
PATTERN_APPEAR |
static int |
PATTERN_COMMON |
static int |
PATTERN_COMMON_DATE |
static int |
PATTERN_COMMON_MINUTE |
static int |
PATTERN_COMMON_MONTH |
static int |
PATTERN_COMPACT |
static int |
PATTERN_COMPACT_DATE |
static int |
PATTERN_COMPACT_MINUTE |
static int |
PATTERN_COMPACT_MONTH |
static int |
PATTERN_DEFAULT |
static int |
PATTERN_NORMAL |
static int |
PATTERN_NORMAL_DATE |
static int |
PATTERN_NORMAL_MINUTE |
static int |
PATTERN_NORMAL_MONTH |
static int |
PATTERN_RFC_3339 |
static int |
PATTERN_RFC_822 |
static int |
PATTERN_TIME |
static int |
PATTERN_TIME_MINUTE |
static int |
PATTERN_YEAR |
static int |
UNIT_DAY |
static int |
UNIT_HOUR |
static int |
UNIT_MILLIS |
static int |
UNIT_MINUTE |
static int |
UNIT_SECOND |
| 限定符和类型 | 方法和说明 |
|---|---|
static Date |
getDate() |
static Date |
getDate(Date startTime,
long delay) |
static Date |
getDate(Date startTime,
long delay,
int unit) |
static Date |
getDate(long delay) |
static Date |
getDate(long delay,
int unit) |
static long |
getGap(Date startTime) |
static long |
getGap(Date startTime,
Date endTime) |
static long |
getGap(Date startTime,
Date endTime,
int unit) |
static long |
getGap(Date startTime,
int unit) |
static Date |
getMax(Date source,
Date target) |
static Date |
getMax(Date source,
int delay) |
static Date |
getMax(Date source,
int delay,
int unit) |
static Date |
getMin(Date source,
Date target) |
static Date |
getMin(Date source,
int delay) |
static Date |
getMin(Date source,
int delay,
int unit) |
static String |
getPattern(int type) |
static Date |
toDate(Object value) |
static String |
toString(Date date) |
static String |
toString(Date date,
int selector) |
static String |
toString(Date date,
String pattern) |
static String |
toString(int selector) |
static String |
toString(Object date) |
static String |
toString(Object date,
int selector) |
public static final int PATTERN_DEFAULT
public static final int PATTERN_COMMON
public static final int PATTERN_COMMON_MINUTE
public static final int PATTERN_COMMON_DATE
public static final int PATTERN_COMMON_MONTH
public static final int PATTERN_NORMAL
public static final int PATTERN_NORMAL_MINUTE
public static final int PATTERN_NORMAL_DATE
public static final int PATTERN_NORMAL_MONTH
public static final int PATTERN_COMPACT
public static final int PATTERN_COMPACT_MINUTE
public static final int PATTERN_COMPACT_DATE
public static final int PATTERN_COMPACT_MONTH
public static final int PATTERN_YEAR
public static final int PATTERN_TIME
public static final int PATTERN_TIME_MINUTE
public static final int PATTERN_RFC_822
public static final int PATTERN_RFC_3339
public static final int PATTERN_APPEAR
public static final int UNIT_MILLIS
public static final int UNIT_SECOND
public static final int UNIT_MINUTE
public static final int UNIT_HOUR
public static final int UNIT_DAY
public static String getPattern(int type)
public static String toString(int selector)
public static Date getDate()
public static Date getDate(long delay)
public static Date getDate(long delay, int unit)
public static long getGap(Date startTime)
public static long getGap(Date startTime, int unit)
Copyright © 2024. All rights reserved.