Year
- Source
- Year.scala
Def
| of days.
| of days.
! of all Days for the year.
Size is 366 for leap and 365 for regular years.
2018.Year.days.~.range.tp
// Output
2018-01-01 <> 2018-12-31
- Source
- Year.scala
Leap year indicator.
Leap year indicator.
Leap years have an extra day - Feb 29th.
Leap years usually happen every 4 years. But, let's check:
// Find every 4th year, which is not leap
(0 <> 2050).~.map(_.Year).take(_.number % 4 == 0).remove(_.isLeap).tp
// Output
~(100, 200, 300, 500, 600, 700, 900, 1000, 1100, 1300, 1400, 1500, 1700, 1800, 1900)
- Source
- Year.scala
| of months.
| of months.
! of all Months for the year.
Size is always 12.
2018.Year.months.~.tp
// Output
~(2018-01, 2018-02, 2018-03, 2018-04, 2018-05, 2018-06, 2018-07, 2018-08, 2018-09, 2018-10, 2018-11, 2018-12)
- Source
- Year.scala
Year period
Year period
Returns Period from the first moment of the year and the first moment of the next year exclusive.
2018.Year.period.tp // prints: 2018-01-01 0:00:00 to 2019-01-01 0:00:00
- Source
- Year.scala
Year start time
Year start time
Returns Time for the first moment of the year
2018.Year.start.tp // prints: Time{day=2018-01-01,time=0:00}
- Source
- Year.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