public class RealTimeTimeProvider extends TimeProviderBase
TimeProviderBase
implementation which uses system timeConstructor and Description |
---|
RealTimeTimeProvider() |
Modifier and Type | Method and Description |
---|---|
Date |
getDate()
Gets the
Date specifying the current date and time. |
org.joda.time.DateTime |
getDateTime()
When overridden in derived class, gets the
DateTime specifying the current date and time. |
getCurrent, getCurrentTime, getFutureDate, resetToRealTime, setCurrent
public Date getDate()
Date
specifying the current date and time.getDate
in class TimeProviderBase
Date
specifying the current date and time.public org.joda.time.DateTime getDateTime()
DateTime
specifying the current date and time.getDateTime
in class TimeProviderBase
DateTime
specifying the current date and time.Copyright © 2013–2023. All rights reserved.