final class Day extends AnyVal with Any.Datum.Int.Sequential[Util.Calendar.Day]

Calendar Date

 // Find all Fridays the 13th for this century
(2000 <<> 2100).all.map(_.Year).flatMap(_.days).let(_.number == 13).
  let(_.weekDay.isFri).peek(_.lp).count lp "Total Count: "

// Output
2001-04-13
2001-07-13
. . . . .
2099-11-13
2100-08-13
Total Count: 172
Ordering
  1. Alphabetic
Inherited
  1. Day
  2. Any.Datum.Int.Sequential
  3. Any.Datum.Int.Ordered
  4. Any.Datum.Z.Ordered
  5. Any.Datum.Int
  6. Custom.Number.Like
  7. Any.Datum
  8. Any.Wrap
  9. scala.AnyVal
  10. scala.Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Constant

  1. val real: Int
    Attributes
    protected
    Definition Classes
    Day_Trait_Trait

Method

  1. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  2. def index: Int

    Unique sequential index.

    Unique sequential index.

    Day 1970-01-01 has index 0

    Day.make(1900, 1, 31).index.lp // Prints: -25537
    Day.make(1970, 1, 31).index.lp // Prints: 30
    Day.make(2018, 1, 31).index.lp // Prints: 17562
    Definition Classes
    Day
  3. def isCurrent: Boolean

    Checks if today.

    Checks if today.

    Returns true if this day is today.

    Day.now.isCurrent.lp // Prints: true
    Definition Classes
    Day
  4. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  5. def make(v: Int): Day
    Attributes
    protected
    Definition Classes
    _Trait_Trait
  6. def max(v: Day): Day

    Maximum value

    Maximum value

    Returns maximum of this and provided value

    Definition Classes
    _Trait → Ordered
  7. def min(v: Day): Day

    Minimum value

    Minimum value

    Returns minimum of this and provided value

    Definition Classes
    _Trait → Ordered
  8. def month: Util.Calendar.Month

    Day's month.

    Day's month.

    Returns Month which contains this Day.

    Definition Classes
    Day
  9. def next: Day
    Definition Classes
    _Trait
  10. def number: Int

    Day number within the month.

    Day number within the month.

    Number is from 1 and up to 31

    Definition Classes
    Day
  11. def period: Period

    Day period

    Day period

    Returns Period from the first moment of the day and the first moment of the next day exclusive.

    Day.make(2018, 1, 1).period.lp // prints: 2018-01-01 0:00:00 to 2018-01-02 0:00:00
    Definition Classes
    Day
  12. def prior: Day
    Definition Classes
    _Trait
  13. def realNumber: Integer
    Attributes
    protected
    Definition Classes
    _TraitLike
  14. def setup: Day.type
    Attributes
    protected
    Definition Classes
    Day_Trait_Trait_Trait
  15. def start: Time

    Day start time.

    Day start time.

    Returns Time for the first moment of the day.

    Day.make(2018, 1, 1).start.lp // prints: Time{day=2018-01-01,time=0:00}
    Definition Classes
    Day
  16. def toString(): String
    Definition Classes
    Day → Any
  17. def weekDay: Util.Calendar.WeekDay

    Sunday to Saturday enumeration value.

    Sunday to Saturday enumeration value.

    Returns WeekDay value corresponding to this day.

    // Calculate number of each WeakDay in the year 2000
    2000.Year.days.all.map(_.weekDay)
        .countFew(_.isSun, _.isMon, _.isTue, _.isWed, _.isThu, _.isFri, _.isSat).all.lp
    // Output
    ~(53, 52, 52, 52, 52, 52, 53)
    Definition Classes
    Day
  18. def year: Util.Calendar.Year

    Day's year.

    Day's year.

    Returns Year which contains this Day.

    Definition Classes
    Day

Operator

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. def +(dt: DayTime, V: \/ = \/): Time

    Creates Time

    Creates Time

    Creates Time with this day and provided DayTime.

    (Day.make(2000, 1, 1) + DayTime.make(23,59,59)).lp // Prints: Time{day=2000-01-01,time=23:59:59}
    Definition Classes
    Day
  4. def +(i: Int): Day
    Definition Classes
    _Trait
  5. def -(i: Int): Day
    Definition Classes
    _Trait
  6. def <(v: Day): Boolean

    Is less test

    Is less test

    Returns true if this is less than v, false otherwise

    Definition Classes
    _Trait → Ordered
  7. def <=(v: Day): Boolean

    Is less or equal test

    Is less or equal test

    Returns true if this is less or equal to v, false otherwise

    Definition Classes
    _Trait → Ordered
  8. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  9. def >(v: Day): Boolean

    Is greater test

    Is greater test

    Returns true if this is greater than v, false otherwise

    Definition Classes
    _Trait → Ordered
  10. def >=(v: Day): Boolean

    Is greater or equal test

    Is greater or equal test

    Returns true if this is greater or equal to v, false otherwise

    Definition Classes
    _Trait → Ordered