io.lamma

Date

case class Date(yyyy: Int, mm: Int, dd: Int) extends Ordered[Date] with WeekOps with MonthOps with YearOps with Product with Serializable

immutable object to represent a Date. All mutating operations will return a new Date.

Linear Supertypes
Serializable, Serializable, Product, Equals, YearOps, MonthOps, WeekOps, Ordered[Date], Comparable[Date], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Date
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. YearOps
  7. MonthOps
  8. WeekOps
  9. Ordered
  10. Comparable
  11. AnyRef
  12. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Date(yyyy: Int, mm: Int, dd: Int)

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. def +(d: Duration): Date

  4. def +(n: Int): Date

  5. def -(that: Date): Int

  6. def -(d: Duration): Date

  7. def -(n: Int): Date

  8. def <(that: Date): Boolean

    Definition Classes
    Ordered
  9. def <=(that: Date): Boolean

    Definition Classes
    Ordered
  10. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def >(that: Date): Boolean

    Definition Classes
    Ordered
  12. def >=(that: Date): Boolean

    Definition Classes
    Ordered
  13. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  14. def backward(cal: HolidayRule): Date

    select the date with backward convention for given holiday.

    select the date with backward convention for given holiday.

    See also

    io.lamma.Selector.Backward

  15. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. def comingDayOfMonth(dom: DayOfMonth): Date

    coming day of month excluding this date

    coming day of month excluding this date

    Definition Classes
    MonthOps
  17. def comingDayOfWeek(wd: DayOfWeek): Date

    calculate the coming day of week excluding this date:

    For example:
    Date(2014-07-05).

    calculate the coming day of week 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

    Definition Classes
    WeekOps
  18. def comingDayOfYear(doy: DayOfYear): Date

    coming day of year excluding this date

    coming day of year excluding this date

    Definition Classes
    YearOps
  19. lazy val comingFriday: Date

    shorthand of comingWeekday(Friday)

    shorthand of comingWeekday(Friday)

    Definition Classes
    WeekOps
  20. lazy val comingMonday: Date

    shorthand of comingWeekday(Monday)

    shorthand of comingWeekday(Monday)

    Definition Classes
    WeekOps
  21. lazy val comingMonthBegin: Date

    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)

    Definition Classes
    MonthOps
  22. lazy val comingMonthEnd: Date

    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)

    Definition Classes
    MonthOps
  23. lazy val comingSaturday: Date

    shorthand of comingWeekday(Saturday)

    shorthand of comingWeekday(Saturday)

    Definition Classes
    WeekOps
  24. lazy val comingSunday: Date

    shorthand of comingWeekday(Sunday)

    shorthand of comingWeekday(Sunday)

    Definition Classes
    WeekOps
  25. lazy val comingThursday: Date

    shorthand of comingWeekday(Thursday)

    shorthand of comingWeekday(Thursday)

    Definition Classes
    WeekOps
  26. lazy val comingTuesday: Date

    shorthand of comingWeekday(Tuesday)

    shorthand of comingWeekday(Tuesday)

    Definition Classes
    WeekOps
  27. lazy val comingWednesday: Date

    shorthand of comingWeekday(Wednesday)

    shorthand of comingWeekday(Wednesday)

    Definition Classes
    WeekOps
  28. lazy val comingYearBegin: Date

    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)

    Definition Classes
    YearOps
  29. lazy val comingYearEnd: Date

    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)

    Definition Classes
    YearOps
  30. def compare(that: Date): Int

    Definition Classes
    Date → Ordered
  31. def compareTo(that: Date): Int

    Definition Classes
    Ordered → Comparable
  32. lazy val dayOfMonth: Int

    Definition Classes
    MonthOps
  33. def dayOfThisMonth(dom: DayOfMonth): Date

    find the day of this month matching input DayOfMonth
    an IllegalArgumentException will be thrown if there is no or more than one dates.

    find the day of this month matching input DayOfMonth
    an IllegalArgumentException will be thrown if there is no or more than one dates.

    Definition Classes
    MonthOps
  34. def dayOfThisYear(doy: DayOfYear): Date

    find the day of this year matching input DayOfYear
    an IllegalArgumentException will be thrown if there is no or more than one dates.

    find the day of this year matching input DayOfYear
    an IllegalArgumentException will be thrown if there is no or more than one dates.

    Definition Classes
    YearOps
  35. lazy val dayOfWeek: DayOfWeek

    Definition Classes
    WeekOps
  36. lazy val dayOfYear: Int

    Definition Classes
    YearOps
  37. val dd: Int

  38. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  39. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  40. def forward(cal: HolidayRule): Date

    select the date with forward convention for given holiday.

    select the date with forward convention for given holiday.

    See also

    io.lamma.Selector.Forward

  41. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  42. def isAfter(that: Date): Boolean

  43. def isBefore(that: Date): Boolean

  44. lazy val isFriday: Boolean

    Definition Classes
    WeekOps
  45. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  46. lazy val isLastDayOfMonth: Boolean

    Definition Classes
    MonthOps
  47. lazy val isLastDayOfYear: Boolean

    Definition Classes
    YearOps
  48. lazy val isMonday: Boolean

    Definition Classes
    WeekOps
  49. def isOnOrAfter(that: Date): Boolean

  50. def isOnOrBefore(that: Date): Boolean

  51. lazy val isSaturday: Boolean

    Definition Classes
    WeekOps
  52. lazy val isSunday: Boolean

    Definition Classes
    WeekOps
  53. lazy val isThursday: Boolean

    Definition Classes
    WeekOps
  54. lazy val isTuesday: Boolean

    Definition Classes
    WeekOps
  55. lazy val isWednesday: Boolean

    Definition Classes
    WeekOps
  56. lazy val isWeekend: Boolean

    Definition Classes
    WeekOps
  57. lazy val maxDayOfMonth: Int

    max day of this month, different month length and leap month are considered

    max day of this month, different month length and leap month are considered

    Definition Classes
    MonthOps
  58. lazy val maxDayOfYear: Int

    max day of this year, leap year is considered

    max day of this year, leap year is considered

    Definition Classes
    YearOps
  59. def minus(that: Date): Int

  60. def minusDays(n: Int): Date

  61. def minusMonths(n: Int): Date

  62. def minusWeeks(n: Int): Date

  63. def minusYears(n: Int): Date

  64. val mm: Int

  65. def modifiedFollowing(cal: HolidayRule): Date

    select the date with modified following convention for given holiday.

    select the date with modified following convention for given holiday.

    See also

    io.lamma.Selector.ModifiedFollowing

  66. def modifiedPreceding(cal: HolidayRule): Date

    select the date with modified preceding convention for given holiday.

    select the date with modified preceding convention for given holiday.

    See also

    io.lamma.Selector.ModifiedPreceding

  67. lazy val month: Month

    Definition Classes
    MonthOps
  68. lazy val monthSinceBC: Int

    Definition Classes
    MonthOps
  69. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  70. final def notify(): Unit

    Definition Classes
    AnyRef
  71. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  72. def pastDayOfMonth(dom: DayOfMonth): Date

    past day of month excluding this date

    past day of month excluding this date

    Definition Classes
    MonthOps
  73. def pastDayOfWeek(wd: DayOfWeek): Date

    past day of week excluding this date

    For example:
    Date(2014-07-05).

    past day of week 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

    Definition Classes
    WeekOps
  74. def pastDayOfYear(doy: DayOfYear): Date

    past day of year excluding this date

    past day of year excluding this date

    Definition Classes
    YearOps
  75. lazy val pastFriday: Date

    shorthand of pastWeekday(Friday)

    shorthand of pastWeekday(Friday)

    Definition Classes
    WeekOps
  76. lazy val pastMonday: Date

    shorthand of pastWeekday(Monday)

    shorthand of pastWeekday(Monday)

    Definition Classes
    WeekOps
  77. lazy val pastMonthBegin: Date

    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)

    Definition Classes
    MonthOps
  78. lazy val pastMonthEnd: Date

    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)

    Definition Classes
    MonthOps
  79. lazy val pastSaturday: Date

    shorthand of pastWeekday(Saturday)

    shorthand of pastWeekday(Saturday)

    Definition Classes
    WeekOps
  80. lazy val pastSunday: Date

    shorthand of pastWeekday(Sunday)

    shorthand of pastWeekday(Sunday)

    Definition Classes
    WeekOps
  81. lazy val pastThursday: Date

    shorthand of pastWeekday(Thursday)

    shorthand of pastWeekday(Thursday)

    Definition Classes
    WeekOps
  82. lazy val pastTuesday: Date

    shorthand of pastWeekday(Tuesday)

    shorthand of pastWeekday(Tuesday)

    Definition Classes
    WeekOps
  83. lazy val pastWednesday: Date

    shorthand of pastWeekday(Wednesday)

    shorthand of pastWeekday(Wednesday)

    Definition Classes
    WeekOps
  84. lazy val pastYearBegin: Date

    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)

    Definition Classes
    YearOps
  85. lazy val pastYearEnd: Date

    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)

    Definition Classes
    YearOps
  86. def plusDays(n: Int): Date

  87. def plusMonths(n: Int): Date

  88. def plusWeeks(n: Int): Date

  89. def plusYears(n: Int): Date

  90. lazy val sameWeekdaysOfMonth: List[Date]

    Every day in the same month with same dow
    eg, if this.

    Every day in the same month with same dow
    eg, if this.dayOfWeek == Wednesday, then this is a list of all Wednesday in the same month

    Definition Classes
    MonthOps
  91. lazy val sameWeekdaysOfMonth4j: List[Date]

    Definition Classes
    MonthOps
  92. lazy val sameWeekdaysOfYear: List[Date]

    Every day in the same year with same dow
    eg, if this.

    Every day in the same year with same dow
    eg, if this.dayOfWeek == Wednesday, then this is a list of all Wednesday in the same year

    Definition Classes
    YearOps
  93. lazy val sameWeekdaysOfYear4j: List[Date]

    Definition Classes
    YearOps
  94. def select(selector: Selector): Date

  95. def shift(shifter: Shifter): Date

  96. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  97. def thisDayOfMonth(dom: DayOfMonth): Date

    Definition Classes
    MonthOps
  98. def thisDayOfYear(doy: DayOfYear): Date

    Definition Classes
    YearOps
  99. lazy val thisMonth: DateRangeBuilder

    an iterable for every day in the month

    an iterable for every day in the month

    Definition Classes
    MonthOps
  100. lazy val thisMonthBegin: Date

    first day of the month

    first day of the month

    Definition Classes
    MonthOps
  101. lazy val thisMonthEnd: Date

    last day of the month, different month end and leap month are handled properly

    last day of the month, different month end and leap month are handled properly

    Definition Classes
    MonthOps
  102. lazy val thisWeek: DateRangeBuilder

    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)

    Definition Classes
    WeekOps
  103. lazy val thisWeekBegin: 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

    Definition Classes
    WeekOps
  104. lazy val thisWeekEnd: 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

    Definition Classes
    WeekOps
  105. lazy val thisYear: DateRangeBuilder

    an iterable for every day in the year

    an iterable for every day in the year

    Definition Classes
    YearOps
  106. lazy val thisYearBegin: Date

    first day of the year

    first day of the year

    Definition Classes
    YearOps
  107. lazy val thisYearEnd: Date

    last day of the year

    last day of the year

    Definition Classes
    YearOps
  108. def to(yyyy: Int, mm: Int, dd: Int): DateRangeBuilder

  109. def to(isoRepr: String): DateRangeBuilder

  110. def to(that: Date): DateRangeBuilder

    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,
    both this date and that date included
    for (d <- Date(2014, 5, 5) to Date(2014, 5, 10)) println(d)

  111. lazy val toISOString: String

    standard ISO string in yyyy-mm-dd.

    standard ISO string in yyyy-mm-dd. eg, 2014-05-23 or 2014-11-02

  112. def until(that: Date): DateRangeBuilder

    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,
    this date is included but that date isn't
    for (d <- Date(2014, 5, 5) until Date(2014, 5, 10)) println(d)

  113. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  114. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  115. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  116. val yyyy: Int

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from YearOps

Inherited from MonthOps

Inherited from WeekOps

Inherited from Ordered[Date]

Inherited from Comparable[Date]

Inherited from AnyRef

Inherited from Any

Ungrouped