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

      @Deprecated @ScheduledForRemoval(inVersion="2.0.0") public static Calendar fromInstant(Instant time)
      Deprecated.
      Will no longer be used by Twitch4J from version 2.0.0
      Parameters:
      time - an Instant
      Returns:
      a Calendar instance for the instant, in the system default zone