final case class MonthOps(underlying: Month) extends AnyVal with Product with Serializable
- Alphabetic
- By Inheritance
- MonthOps
- Serializable
- Product
- Equals
- AnyVal
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new MonthOps(underlying: Month)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##(): Int
- Definition Classes
- Any
- def +(months: Int): Month
Obtains the month-of-year which is the specified number of months after this one.
- def -(months: Int): Month
Obtains the month-of-year which is the specified number of months before this one.
- def ->[B](y: B): (MonthOps, B)
- def /(day: Int): MonthDay
Obtains a java.time.MonthDay by combining this month with the specified day-of-month.
Obtains a java.time.MonthDay by combining this month with the specified day-of-month.
- Exceptions thrown
DateTimeException
if the day-of-month is invalid for the month.
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- def =~(temporal: Temporal): Temporal
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def ensuring(cond: (MonthOps) => Boolean, msg: => Any): MonthOps
- def ensuring(cond: (MonthOps) => Boolean): MonthOps
- def ensuring(cond: Boolean, msg: => Any): MonthOps
- def ensuring(cond: Boolean): MonthOps
- def formatted(fmtstr: String): String
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val underlying: Month
Shadowed Implicit Value Members
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from MonthOps toany2stringadd[MonthOps] performed by method any2stringadd in scala.Predef.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(monthOps: any2stringadd[MonthOps]).+(other)
- Definition Classes
- any2stringadd
Deprecated Value Members
- def →[B](y: B): (MonthOps, B)
- Implicit
- This member is added by an implicit conversion from MonthOps toArrowAssoc[MonthOps] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.
Scala Time
scala-time is a simple Scala wrapper for easier use JDK 1.8.0 (Java 8) time APIs
Overview
The library is contained in the scalatime package which includes extension methods provided via implicit conversion methods to Scala value classes.
For usage examples see below: