public class SystemTime extends Object
Modifier and Type | Field and Description |
---|---|
static TimeZone |
UTC_TIMEZONE |
Constructor and Description |
---|
SystemTime() |
Modifier and Type | Method and Description |
---|---|
static long |
currentTimeMillis() |
static Date |
getDate() |
static LocalDateTime |
getLocalDateTime() |
static Calendar |
getUtcCalendar() |
static Calendar |
getUtcCalendar(Date date) |
static Calendar |
getUtcCalendar(long time) |
static LocalDateTime |
now() |
static void |
setTimeSource(SystemTimeSource systemTimeSource) |
public static final TimeZone UTC_TIMEZONE
public static long currentTimeMillis()
public static LocalDateTime now()
public static Date getDate()
public static LocalDateTime getLocalDateTime()
public static void setTimeSource(SystemTimeSource systemTimeSource)
public static Calendar getUtcCalendar()
public static Calendar getUtcCalendar(long time)
Copyright © 2021. All rights reserved.