DateTimeSource¶
-
public interface
DateTimeSource
¶ A datetime source for the application. Allows mocking of time.
Methods¶
now¶
-
DateTime
now
()¶ Used for retrieving the current date and time.
Returns: org.joda.time.DateTime
representing the current date and time
timeZone¶
-
DateTimeZone
timeZone
()¶ Returns the timezone we are in.
Returns: the timezone
today¶
-
LocalDate
today
()¶ Used for retrieving the current date.
Returns: org.joda.time.DateTime
representing the current date