Class RealTimeTimeProvider

java.lang.Object
com.sportradar.livedata.sdk.common.timer.TimeProviderBase
com.sportradar.livedata.sdk.common.timer.RealTimeTimeProvider

public class RealTimeTimeProvider extends TimeProviderBase
A TimeProviderBase implementation which uses system time
Author:
uros.bregar
  • Constructor Details

    • RealTimeTimeProvider

      public RealTimeTimeProvider()
  • Method Details

    • getDate

      public Date getDate()
      Gets the Date specifying the current date and time.
      Specified by:
      getDate in class TimeProviderBase
      Returns:
      The Date specifying the current date and time.
    • getDateTime

      public org.joda.time.DateTime getDateTime()
      When overridden in derived class, gets the DateTime specifying the current date and time.
      Specified by:
      getDateTime in class TimeProviderBase
      Returns:
      the DateTime specifying the current date and time.