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.Calendar fromInstant​(java.time.Instant time)  
    static long getCurrentTimeInMillis()
    Gets the current time in millis

    Methods 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 - an Instant
      Returns:
      a Calendar instance for the instant, in the system default zone