public class TimeUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
DAY_MILLIS |
static int |
DAY_SEC |
static long |
HOUR_MILLIS |
static int |
HOUR_SEC |
static long |
MIN_MILLIS |
static int |
MIN_SEC |
static long |
MONTH_MILLIS |
static int |
MONTH_SEC |
static int |
SEC |
static long |
SEC_MILLIS |
static long |
WEEK_MILLIS |
static int |
WEEK_SE |
static long |
YEAR_MILLIS |
static int |
YEAR_SEC |
| Constructor and Description |
|---|
TimeUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
days(Date time) |
static Date |
lastYearEnd() |
static Date |
lastYearStart() |
static void |
main(String[] args) |
static boolean |
setSystemTime(Date date)
修改系统时间
|
static Date |
thisMonthEnd() |
static Date |
thisMonthStart() |
static Date |
thisWeekEnd() |
static Date |
thisWeekStart() |
static Date |
thisYearEnd() |
static Date |
thisYearStart() |
static String |
time(Integer time) |
static String |
time(Long time) |
static Date |
todayEnd() |
static Date |
todayStart() |
static Date |
yesterdayEnd() |
static Date |
yesterdayStart() |
public static final long SEC_MILLIS
public static final long MIN_MILLIS
public static final long HOUR_MILLIS
public static final long DAY_MILLIS
public static final long WEEK_MILLIS
public static final long MONTH_MILLIS
public static final long YEAR_MILLIS
public static final int SEC
public static final int MIN_SEC
public static final int HOUR_SEC
public static final int DAY_SEC
public static final int WEEK_SE
public static final int MONTH_SEC
public static final int YEAR_SEC
public static int days(Date time)
public static Date todayStart()
public static Date todayEnd()
public static Date yesterdayStart()
public static Date yesterdayEnd()
public static Date thisWeekStart()
public static Date thisWeekEnd()
public static Date thisMonthStart()
public static Date thisMonthEnd()
public static Date thisYearEnd()
public static Date thisYearStart()
public static Date lastYearEnd()
public static Date lastYearStart()
public static boolean setSystemTime(Date date)
date - 时间public static void main(String[] args)
Copyright © 2016. All Rights Reserved.