| Modifier and Type | Method and Description |
|---|---|
static DayMonthYear |
Moments.today()
Return a
DayMonthYear instance representing today |
static DayMonthYear |
Moments.tomorrow()
Return a
DayMonthYear instance representing tomorrow |
static DayMonthYear |
Moments.yesterday()
Return a
DayMonthYear instance representing yesterday |
| Modifier and Type | Method and Description |
|---|---|
static org.hamcrest.Matcher<Date> |
IsAfter.after(DayMonthYear date)
Creates a matcher that matches when the examined date is after the reference date
For example:
|
static org.hamcrest.Matcher<Date> |
DateMatchers.after(DayMonthYear date)
Creates a matcher that matches when the examined date is after the reference date
For example:
|
static org.hamcrest.Matcher<Date> |
IsBefore.before(DayMonthYear date)
Creates a matcher that matches when the examined date is before the reference date
For example:
|
static org.hamcrest.Matcher<Date> |
DateMatchers.before(DayMonthYear date)
Creates a matcher that matches when the examined date is before the reference date
For example:
|
static org.hamcrest.Matcher<Date> |
IsSameDay.sameDay(DayMonthYear date)
Creates a matcher that matches when the examined date is on the same day of the year as the reference date in the default timezone
For example:
|
static org.hamcrest.Matcher<Date> |
DateMatchers.sameDay(DayMonthYear date)
Creates a matcher that matches when the examined date is on the same day of the year as the reference date
For example:
|
static org.hamcrest.Matcher<Date> |
IsSameOrAfter.sameOrAfter(DayMonthYear date)
Creates a matcher that matches when the examined date is at the same instant or after the reference date
For example:
|
static org.hamcrest.Matcher<Date> |
DateMatchers.sameOrAfter(DayMonthYear date)
Creates a matcher that matches when the examined date is at the same instant or after the reference date
For example:
|
static org.hamcrest.Matcher<Date> |
IsSameOrBefore.sameOrBefore(DayMonthYear date)
Creates a matcher that matches when the examined date is at the same instant or before the reference date
For example:
|
static org.hamcrest.Matcher<Date> |
DateMatchers.sameOrBefore(DayMonthYear date)
Creates a matcher that matches when the examined date is at the same date or before the reference date
For example:
|
static org.hamcrest.Matcher<Date> |
IsWithin.within(long period,
TimeUnit unit,
DayMonthYear date)
Creates a matcher that matches when the examined date is within a given period of the reference date
For example:
|
static org.hamcrest.Matcher<Date> |
DateMatchers.within(long period,
TimeUnit unit,
DayMonthYear date)
Creates a matcher that matches when the examined date is within a defined period the reference date
For example:
|
Copyright © 2014. All Rights Reserved.