JodaDateTimes
Returns a random DateTime , optionally based on the current time but constrained by a Period .
The current time ('now') is obtained from the org.apache.causeway.applib.services.clock.ClockService .
API
JodaDateTimes.java
class JodaDateTimes {
JodaDateTimes(FakeDataService fakeDataService)
DateTime around(Period period) (1)
DateTime before(Period period) (2)
DateTime after(Period period) (3)
DateTime any() (4)
}
1 | around(Period)
Returns a random date/time either before or after 'now', within the specified java.time.Period . |
2 | before(Period)
Returns a random date/time some time before 'now', within the specified java.time.Period . |
3 | after(Period)
Returns a random date/time some time after 'now', within the specified java.time.Period . |
4 | any()
Returns a random date/time 5 years around 'now'. |
Members
around(Period)
Returns a random date/time either before or after 'now', within the specified java.time.Period .
before(Period)
Returns a random date/time some time before 'now', within the specified java.time.Period .