Package com.github.twitch4j.common.util
Class TimeUtils
java.lang.Object
com.github.twitch4j.common.util.TimeUtils
public class TimeUtils
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description TimeUtils() -
Method Summary
Modifier and Type Method Description static java.util.CalendarfromInstant(java.time.Instant time)static longgetCurrentTimeInMillis()Gets the current time in millisMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
TimeUtils
public TimeUtils()
-
-
Method Details
-
getCurrentTimeInMillis
public static long getCurrentTimeInMillis()Gets the current time in millis- Returns:
- long
-
fromInstant
public static java.util.Calendar fromInstant(java.time.Instant time)- Parameters:
time- anInstant- Returns:
- a
Calendarinstance for the instant, in the system default zone
-