Class TimeUtils

java.lang.Object
com.github.twitch4j.common.util.TimeUtils

public class TimeUtils extends Object
  • Constructor Details

    • TimeUtils

      public TimeUtils()
  • Method Details

    • getCurrentTimeInMillis

      public static long getCurrentTimeInMillis()
      Gets the current time in millis
      Returns:
      long
    • fromInstant

      public static Calendar fromInstant(Instant time)
      Parameters:
      time - an Instant
      Returns:
      a Calendar instance for the instant, in the system default zone