Month

opaque type Month

Calendar Month

Month is an opaque Int value, holding month index since start of 1970

Source
Month.scala

Def

@targetName("plus")
inline def +(i: Int): Month

Get further in sequance

Get further in sequance

Returns value, which is given number of position further in sequence

Inherited from
_methods
Source
Sequential.scala
@targetName("minus")
inline def -(i: Int): Month

Get before in sequance

Get before in sequance

Returns value, which is given number of position before in sequence

Inherited from
_methods
Source
Sequential.scala
@targetName("less")
inline def <(v: Month): Boolean

Less

Less

Returns true if current value is less than given, false - otherwise

Inherited from
_methods
Source
Ordered.scala
@targetName("lessOrEqual")
inline def <=(v: Month): Boolean

Less or equal

Less or equal

Returns true if current value is less or equal to given, false - otherwise

Inherited from
_methods
Source
Ordered.scala
@targetName("range")
inline def <>(to: Int.G.Range[Month]

Range

Range

Returns Range from current to given value

Note. Range uses base primitive natural ordering

Inherited from
z_MethodsBase
Source
Ordered.scala
@targetName("rangeOfSize")
inline def <>=(sz: Int): Int.G.Range[Month]

Range by size

Range by size

Returns Range from current value to current plus given size exclusive

Note. Range uses base primitive natural ordering

Inherited from
z_MethodsBase
Source
Ordered.scala
@targetName("rangeX")
inline def <>>(to: Int.G.Range[Month]

Exclusive end range

Exclusive end range

Returns Range from current to given value exclusive

Note. Range uses base primitive natural ordering

Inherited from
z_MethodsBase
Source
Ordered.scala
@targetName("greater")
inline def >(v: Month): Boolean

Greater

Greater

Returns true if current value is greater than given, false - otherwise

Inherited from
_methods
Source
Ordered.scala
@targetName("greaterOrEqual")
inline def >=(v: Month): Boolean

Greater or equal

Greater or equal

Returns true if current value is greater or equal to given, false - otherwise

Inherited from
_methods
Source
Ordered.scala
@targetName("Opt")
inline def ?: Int.G.Opt[Month]

To option

To option

Returns Int specialized option

Inherited from
_methods
Source
Base.scala

Index of days.

Index of days.

Index of all Days for the month.

  Month(2018, 1).days.stream.range.tp
  // Output
  2018-01-01 <> 2018-01-31
Source
Month.scala
inline def index: Int

Set sequential index.

Set sequential index.

Index is calculated as: (year.number * 12 + month.number - 1)

  Month(2018, 1).index.tp // Prints: 24216
  Month(2018, 2).index.tp // Prints: 24217
  Month(2018, 3).index.tp // Prints: 24218
Source
Month.scala
def isCurrent: Boolean
inline def max(v:

Max value

Max value

Returns maximum of current or given value

Inherited from
z_MethodsBase
Source
Ordered.scala
inline def min(v:

Min value

Min value

Returns minimun of current or given value

Inherited from
z_MethodsBase
Source
Ordered.scala
inline def next: Month

Next in sequance

Next in sequance

Returns next value in sequance

Inherited from
_methods
Source
Sequential.scala
inline def number: Int

Month number within the year.

Month number within the year.

Number is within 1 <> 12

Source
Month.scala
inline def period: Period

Year period

Year period

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

  Month(2018, 1).period.tp // prints: 2018-01-01 0:00:00 to 2018-02-01 0:00:00
Source
Month.scala
inline def prior: Month

Prior in sequance

Prior in sequance

Returns prior value in sequance

Inherited from
_methods
Source
Sequential.scala
inline def real: Int

Real value

Real value

Returns Int value standing behind the opaque type.

This is a zero cost call.

Inherited from
_methods
Source
Base.scala
def start: Time

Month start time

Month start time

Returns Time for the first moment of the month

   Month(2018, 1).start.tp // prints: Time{day=2018-01-01,time=0:00}
Source
Month.scala
inline def year: Year

Month's year.

Month's year.

Returns Year which contains this Month.

Source
Month.scala