io.lamma

Date

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

Linear Supertypes
Serializable, Serializable, Product, Equals, Ordered[Date], Comparable[Date], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Date
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Ordered
  7. Comparable
  8. AnyRef
  9. 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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

  5. def +(n: Int): Date

  6. def -(that: Date): Int

  7. def -(d: Duration): Date

  8. def -(n: Int): Date

  9. def <(that: Date): Boolean

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

    Definition Classes
    Ordered
  11. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  13. def >(that: Date): Boolean

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

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

    Definition Classes
    Any
  16. def backward(cal: Calendar): Date

    select the date with backward convention for given calendar.

    select the date with backward convention for given calendar.

    See also

    io.lamma.Selector.Backward

  17. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. def comingDayOfMonth(pom: PositionOfMonth): Date

    coming day of month excluding this date

  19. def comingDayOfYear(poy: PositionOfYear): Date

    coming day of year excluding this date

  20. lazy val comingFriday: Date

    shorthand of comingWeekday(Friday)

  21. lazy val comingMonday: Date

    shorthand of comingWeekday(Monday)

  22. 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)

  23. 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)

  24. lazy val comingSaturday: Date

    shorthand of comingWeekday(Saturday)

  25. lazy val comingSunday: Date

    shorthand of comingWeekday(Sunday)

  26. lazy val comingThursday: Date

    shorthand of comingWeekday(Thursday)

  27. lazy val comingTuesday: Date

    shorthand of comingWeekday(Tuesday)

  28. lazy val comingWednesday: Date

    shorthand of comingWeekday(Wednesday)

  29. def comingWeekday(wd: Weekday): Date

    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

  30. 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)

  31. 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)

  32. def compare(that: Date): Int

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

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

  35. lazy val dayOfYear: Int

  36. val dd: Int

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

    Definition Classes
    AnyRef
  38. def finalize(): Unit

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

    select the date with forward convention for given calendar.

    select the date with forward convention for given calendar.

    See also

    io.lamma.Selector.Forward

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

    Definition Classes
    AnyRef → Any
  41. lazy val isFriday: Boolean

  42. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  43. lazy val isLastDayOfMonth: Boolean

  44. lazy val isLastDayOfYear: Boolean

  45. lazy val isMonday: Boolean

  46. lazy val isSaturday: Boolean

  47. lazy val isSunday: Boolean

  48. lazy val isThursday: Boolean

  49. lazy val isTuesday: Boolean

  50. lazy val isWednesday: Boolean

  51. lazy val maxDayOfMonth: Int

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

  52. lazy val maxDayOfYear: Int

    max day of this year, leap year is considered

  53. val mm: Int

  54. def modifiedFollowing(cal: Calendar): Date

    select the date with modified following convention for given calendar.

    select the date with modified following convention for given calendar.

    See also

    io.lamma.Selector.ModifiedFollowing

  55. def modifiedPreceding(cal: Calendar): Date

    select the date with modified preceding convention for given calendar.

    select the date with modified preceding convention for given calendar.

    See also

    io.lamma.Selector.ModifiedPreceding

  56. lazy val month: Month

  57. lazy val monthSinceBC: Int

  58. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  61. def pastDayOfMonth(pom: PositionOfMonth): Date

    past day of month excluding this date

  62. def pastDayOfYear(poy: PositionOfYear): Date

    past day of year excluding this date

  63. lazy val pastFriday: Date

    shorthand of pastWeekday(Friday)

  64. lazy val pastMonday: Date

    shorthand of pastWeekday(Monday)

  65. 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)

  66. 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)

  67. lazy val pastSaturday: Date

    shorthand of pastWeekday(Saturday)

  68. lazy val pastSunday: Date

    shorthand of pastWeekday(Sunday)

  69. lazy val pastThursday: Date

    shorthand of pastWeekday(Thursday)

  70. lazy val pastTuesday: Date

    shorthand of pastWeekday(Tuesday)

  71. lazy val pastWednesday: Date

    shorthand of pastWeekday(Wednesday)

  72. def pastWeekday(wd: Weekday): Date

    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

  73. 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)

  74. 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)

  75. lazy val sameWeekdaysOfMonth: List[Date]

    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

  76. lazy val sameWeekdaysOfYear: List[Date]

    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

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

    Definition Classes
    AnyRef
  78. lazy val thisMonth: DateRange

    an iterable for every day in the month

  79. lazy val thisMonthBegin: Date

    first day of the month

  80. lazy val thisMonthEnd: Date

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

  81. lazy val thisWeed: DateRange

    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)

  82. 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

  83. 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

  84. lazy val thisYear: DateRange

    an iterable for every day in the year

  85. lazy val thisYearBegin: Date

    first day of the year

  86. lazy val thisYearEnd: Date

    last day of the year

  87. def to(that: Date): DateRange

    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)

  88. 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

  89. def until(that: Date): DateRange

    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)

  90. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  93. lazy val weekday: Weekday

  94. val yyyy: Int

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Ordered[Date]

Inherited from Comparable[Date]

Inherited from AnyRef

Inherited from Any

Ungrouped