select the date with backward convention for given calendar.
select the date with backward convention for given calendar.
io.lamma.Selector.Backward
coming day of month excluding this date
coming day of year excluding this date
shorthand of comingWeekday(Friday)
shorthand of comingWeekday(Monday)
shorthand of comingDayOfMonth(FirstDayOfMonth)
For example:
Date(2014, 7, 31).
shorthand of comingDayOfMonth(FirstDayOfMonth)
For example:
Date(2014, 7, 31).comingMonthBegin => Date(2014, 8, 1)
Date(2014, 8, 1).comingMonthBegin => Date(2014, 9, 1)
shorthand of comingDayOfMonth(LastDayOfMonth)
For example:
Date(2014, 7, 30).
shorthand of comingDayOfMonth(LastDayOfMonth)
For example:
Date(2014, 7, 30).comingMonthEnd => Date(2014, 7, 31)
Date(2014, 7, 31).comingMonthEnd => Date(2014, 8, 31)
shorthand of comingWeekday(Saturday)
shorthand of comingWeekday(Sunday)
shorthand of comingWeekday(Thursday)
shorthand of comingWeekday(Tuesday)
shorthand of comingWeekday(Wednesday)
calculate the coming weekday excluding this date:
For example:
Date(2014-07-05).
calculate the coming weekday excluding this date:
For example:
Date(2014-07-05).comingWeekday(Monday) => Date(2014-07-07)
Date(2014-07-05).comingWeekday(Saturday) => Date(2014-07-12) // note 2014-07-05 itself is already Saturday
shorthand of comingDayOfYear(FirstDayOfYear)
For example:
Date(2014, 8, 2).
shorthand of comingDayOfYear(FirstDayOfYear)
For example:
Date(2014, 8, 2).comingYearBegin => Date(2015, 1, 1)
Date(2015, 1, 1).comingYearBegin => Date(2016, 1, 1)
shorthand of comingDayOfYear(LastDayOfYear)
For example:
Date(2014, 8, 2).
shorthand of comingDayOfYear(LastDayOfYear)
For example:
Date(2014, 8, 2).comingYearEnd => Date(2014, 12, 31)
Date(2014, 12, 31).comingYearEnd => Date(2015, 12, 31)
select the date with forward convention for given calendar.
select the date with forward convention for given calendar.
io.lamma.Selector.Forward
max day of this month, different month length and leap month are considered
max day of this year, leap year is considered
select the date with modified following convention for given calendar.
select the date with modified following convention for given calendar.
io.lamma.Selector.ModifiedFollowing
select the date with modified preceding convention for given calendar.
select the date with modified preceding convention for given calendar.
io.lamma.Selector.ModifiedPreceding
past day of month excluding this date
past day of year excluding this date
shorthand of pastWeekday(Friday)
shorthand of pastWeekday(Monday)
shorthand of pastDayOfMonth(FirstDayOfMonth)
For example:
Date(2014, 8, 2).
shorthand of pastDayOfMonth(FirstDayOfMonth)
For example:
Date(2014, 8, 2).pastMonthBegin => Date(2014, 8, 1)
Date(2014, 8, 1).pastMonthBegin => Date(2014, 7, 1)
shorthand of pastDayOfMonth(LastDayOfMonth)
For example:
Date(2014, 8, 5).
shorthand of pastDayOfMonth(LastDayOfMonth)
For example:
Date(2014, 8, 5).pastMonthEnd => Date(2014, 7, 31)
Date(2014, 7, 31).pastMonthEnd => Date(2014, 6, 30)
shorthand of pastWeekday(Saturday)
shorthand of pastWeekday(Sunday)
shorthand of pastWeekday(Thursday)
shorthand of pastWeekday(Tuesday)
shorthand of pastWeekday(Wednesday)
past weekday excluding this date
For example:
Date(2014-07-05).
past weekday excluding this date
For example:
Date(2014-07-05).pastWeekday(Monday) => Date(2014-06-30)
Date(2014-07-05).pastWeekday(Saturday) => Date(2014-06-28) // note 2014-07-05 itself is already Saturday
shorthand of pastDayOfYear(FirstDayOfYear)
For example:
Date(2014, 8, 2).
shorthand of pastDayOfYear(FirstDayOfYear)
For example:
Date(2014, 8, 2).pastYearBegin => Date(2014, 1, 1)
Date(2014, 1, 1).pastYearBegin => Date(2013, 1, 1)
shorthand of pastDayOfYear(LastDayOfYear)
For example:
Date(2014, 8, 2).
shorthand of pastDayOfYear(LastDayOfYear)
For example:
Date(2014, 8, 2).pastYearEnd => Date(2013, 12, 31)
Date(2013, 12, 31).pastYearEnd => Date(2012, 12, 31)
Every day in the same month with same weekday
eg, if this.
Every day in the same month with same weekday
eg, if this.weekday == Wednesday, then this is a list of all Wednesday in the same month
Every day in the same year with same weekday
eg, if this.
Every day in the same year with same weekday
eg, if this.weekday == Wednesday, then this is a list of all Wednesday in the same year
an iterable for every day in the month
first day of the month
last day of the month, different month end and leap month are handled properly
an iterable for every day in this week
(week starts on Monday according to ISO 8601: http://en.
an iterable for every day in this week
(week starts on Monday according to ISO 8601: http://en.wikipedia.org/wiki/ISO_week_date)
The first day of this week (Monday)
http://en.
The first day of this week (Monday)
http://en.wikipedia.org/wiki/ISO_week_date
The last day of this week (Sunday)
http://en.
The last day of this week (Sunday)
http://en.wikipedia.org/wiki/ISO_week_date
an iterable for every day in the year
first day of the year
last day of the year
generate a DateRange iterable, which can be used similar as scala.
generate a DateRange iterable, which can be used similar as scala.collection.immutable.Range. eg,
for (d <- Date(2014, 5, 5) to Date(2014, 5, 10)) println(d)
standard ISO string in yyyy-mm-dd.
standard ISO string in yyyy-mm-dd. eg, 2014-05-23 or 2014-11-02