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: 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: 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

  15. def clone(): AnyRef

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

    coming day of month excluding this date

  17. def comingDayOfYear(poy: PositionOfYear): Date

    coming day of year excluding this date

  18. lazy val comingFriday: Date

    shorthand of comingWeekday(Friday)

  19. lazy val comingMonday: Date

    shorthand of comingWeekday(Monday)

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

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

  22. lazy val comingSaturday: Date

    shorthand of comingWeekday(Saturday)

  23. lazy val comingSunday: Date

    shorthand of comingWeekday(Sunday)

  24. lazy val comingThursday: Date

    shorthand of comingWeekday(Thursday)

  25. lazy val comingTuesday: Date

    shorthand of comingWeekday(Tuesday)

  26. lazy val comingWednesday: Date

    shorthand of comingWeekday(Wednesday)

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

  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)

  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)

  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

  33. lazy val dayOfYear: Int

  34. val dd: Int

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

    Definition Classes
    AnyRef
  36. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  37. 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

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

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

  40. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  41. lazy val isLastDayOfMonth: Boolean

  42. lazy val isLastDayOfYear: Boolean

  43. lazy val isMonday: Boolean

  44. lazy val isSaturday: Boolean

  45. lazy val isSunday: Boolean

  46. lazy val isThursday: Boolean

  47. lazy val isTuesday: Boolean

  48. lazy val isWednesday: Boolean

  49. lazy val maxDayOfMonth: Int

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

  50. lazy val maxDayOfYear: Int

    max day of this year, leap year is considered

  51. val mm: Int

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

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

  54. lazy val month: Month

  55. lazy val monthSinceBC: Int

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

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

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

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

    past day of month excluding this date

  60. def pastDayOfYear(poy: PositionOfYear): Date

    past day of year excluding this date

  61. lazy val pastFriday: Date

    shorthand of pastWeekday(Friday)

  62. lazy val pastMonday: Date

    shorthand of pastWeekday(Monday)

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

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

  65. lazy val pastSaturday: Date

    shorthand of pastWeekday(Saturday)

  66. lazy val pastSunday: Date

    shorthand of pastWeekday(Sunday)

  67. lazy val pastThursday: Date

    shorthand of pastWeekday(Thursday)

  68. lazy val pastTuesday: Date

    shorthand of pastWeekday(Tuesday)

  69. lazy val pastWednesday: Date

    shorthand of pastWeekday(Wednesday)

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

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

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

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

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

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

    Definition Classes
    AnyRef
  76. lazy val thisMonth: DateRange

    an iterable for every day in the month

  77. lazy val thisMonthBegin: Date

    first day of the month

  78. lazy val thisMonthEnd: Date

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

  79. lazy val thisYear: DateRange

    an iterable for every day in the year

  80. lazy val thisYearBegin: Date

    first day of the year

  81. lazy val thisYearEnd: Date

    last day of the year

  82. 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,
    for (d <- Date(2014, 5, 5) to Date(2014, 5, 10)) println(d)

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

  84. final def wait(): Unit

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

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

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

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