Day
- Source
- Day.scala
Def
Set sequential index.
Set sequential index.
Day 1970-01-01 has index 0
Day(1900, 1, 31).index.tp // Prints: -25537
Day(1970, 1, 31).index.tp // Prints: 30
Day(2018, 1, 31).index.tp // Prints: 17562
- Source
- Day.scala
Checks if today
.
Checks if today
.
Returns true
if this
day is today
.
Day().isCurrent.tp // Prints: true
- Source
- Day.scala
Day number within the month.
Day number within the month.
Number is from 1 and up to 31
- Source
- Day.scala
Sunday to Saturday enumereration value.
Sunday to Saturday enumereration value.
Returns WeekDay value corresponding to this day.
// Calculate number of each WeakDay in the year 2000
2000.Year.days.~.map(_.weekDay)
.countFew(_.isSun, _.isMon, _.isTue, _.isWed, _.isThu, _.isFri, _.isSat).~.tp
// Output
~(53, 52, 52, 52, 52, 52, 53)
- Source
- Day.scala
Inherited
Get further in sequance
Get further in sequance
Returns value, which is given number of position further in sequence
- Inherited from
- Sequential
- Source
- Sequential.scala
Get before in sequance
Get before in sequance
Returns value, which is given number of position before in sequence
- Inherited from
- Sequential
- Source
- Sequential.scala
Less
Less
Returns true
if current value is less than given, false
- otherwise
- Inherited from
- Ordered
- Source
- Ordered.scala
Less or equal
Less or equal
Returns true
if current value is less or equal to given, false
- otherwise
- Inherited from
- Ordered
- Source
- Ordered.scala
Exclusive end range
Exclusive end range
Returns Range from current to given value exclusive
Note. Range uses base primitive natural ordering
- Inherited from
- Ordered
- Source
- Ordered.scala
Greater
Greater
Returns true
if current value is greater than given, false
- otherwise
- Inherited from
- Ordered
- Source
- Ordered.scala
Greater or equal
Greater or equal
Returns true
if current value is greater or equal to given, false
- otherwise
- Inherited from
- Ordered
- Source
- Ordered.scala
Type to Info
Type to Info
Override this method to provide type standard Info implementation
- Inherited from
- Type
- Source
- Type.scala
Next in sequance
Next in sequance
Returns next value in sequance
- Inherited from
- Sequential
- Source
- Sequential.scala
Prior in sequance
Prior in sequance
Returns prior value in sequance
- Inherited from
- Sequential
- Source
- Sequential.scala