Class Time


  • public class Time
    extends Object
    Helper class for the Kinesis Video producer SDK time. NOTE: Time in the producer SDK is defined as 100ns
    • Field Detail

      • NANOS_IN_A_TIME_UNIT

        public static final long NANOS_IN_A_TIME_UNIT
        Hundreds of nanos in a units
        See Also:
        Constant Field Values
      • HUNDREDS_OF_NANOS_IN_A_MICROSECOND

        public static final long HUNDREDS_OF_NANOS_IN_A_MICROSECOND
        See Also:
        Constant Field Values
      • HUNDREDS_OF_NANOS_IN_A_MILLISECOND

        public static final long HUNDREDS_OF_NANOS_IN_A_MILLISECOND
        See Also:
        Constant Field Values
      • HUNDREDS_OF_NANOS_IN_A_SECOND

        public static final long HUNDREDS_OF_NANOS_IN_A_SECOND
        See Also:
        Constant Field Values
      • HUNDREDS_OF_NANOS_IN_A_MINUTE

        public static final long HUNDREDS_OF_NANOS_IN_A_MINUTE
        See Also:
        Constant Field Values
      • HUNDREDS_OF_NANOS_IN_AN_HOUR

        public static final long HUNDREDS_OF_NANOS_IN_AN_HOUR
        See Also:
        Constant Field Values
      • NANOS_IN_A_MILLISECOND

        public static final long NANOS_IN_A_MILLISECOND
        See Also:
        Constant Field Values
    • Constructor Detail

      • Time

        public Time()
    • Method Detail

      • getCurrentTime

        public static final long getCurrentTime()
        Gets the current time in producer time units
        Returns:
        Current system time in Kinesis Video time units
      • getTime

        public static final long getTime​(@Nonnull
                                         Date date)
        Converts Date to Kinesis Video time
        Parameters:
        date - - Java date object
        Returns:
        Time in Kinesis Video time units