final case class Date(date: java.util.Date) extends AnyVal with Ordered[Date] with Product with Serializable
- Source
- date.scala
- Alphabetic
- By Inheritance
- Date
- Serializable
- Product
- Equals
- Ordered
- Comparable
- AnyVal
- Any
- by orderingToOrdered
- by richDrxAny
- by DrxBoundOps
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Date(date: java.util.Date)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- def %(fmt: String): String
- def +(time: Time): Date
- def +-(time: Time): Bound[Date]
- def -(that: Date): Time
- def -(time: Time): Date
- def ->[B](y: B): (Date, B)
- def <(that: Date): Boolean
- Definition Classes
- Ordered
- def <=(that: Date): Boolean
- Definition Classes
- Ordered
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- def >(that: Date): Boolean
- Definition Classes
- Ordered
- def >=(that: Date): Boolean
- Definition Classes
- Ordered
- def applyIf(t: Boolean, f: (Date) => Date): Date
- Implicit
- This member is added by an implicit conversion from Date toDrxAny[Date] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def applyIf(t: (Date) => Boolean)(f: (Date) => Date): Date
better chaining for types
better chaining for types
- Implicit
- This member is added by an implicit conversion from Date toDrxAny[Date] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def cal(tz: String): Calendar
- def cal: Calendar
- def compare(that: Date): Int
- Definition Classes
- Date → Ordered
- def compareTo(that: Date): Int
- Definition Classes
- Ordered → Comparable
- val date: java.util.Date
- def dayOfWeek: DayOfWeek
- def elementOf(xs: Set[Date]): Boolean
- Implicit
- This member is added by an implicit conversion from Date toDrxAny[Date] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def ensuring(cond: (Date) => Boolean, msg: => Any): Date
- def ensuring(cond: (Date) => Boolean): Date
- def ensuring(cond: Boolean, msg: => Any): Date
- def ensuring(cond: Boolean): Date
- def floorDay: Date
- def format(dt: Time): String
format a date at delta time resolution
- def format(f: Form): String
- def format(fmt: String, tz: String): String
- def format(fmt: String): String
- def formatted(fmtstr: String): String
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def iso: String
- def isoCompact: String
- def isoDay: String
- def isoHour: String
- def isoLocal: String
- def isoMinute: String
- def isoMs: String
- def isoYr: String
- def krypton: Krypton
- def ms: Long
Convenience function for the more direct: (Date.now - Date.unixEpoch).ms.toLong
- def niceWork: String
- def noneIf(f: (Date) => Boolean): Option[Date]
- Implicit
- This member is added by an implicit conversion from Date toDrxAny[Date] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def optionIf(f: (Date) => Boolean): Option[Date]
optionally wrap an object
optionally wrap an object
- Implicit
- This member is added by an implicit conversion from Date toDrxAny[Date] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def preApply[B](f: (Date) => B): B
a preApply f => f(a)
a preApply f => f(a)
- Implicit
- This member is added by an implicit conversion from Date toDrxAny[Date] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def ramp(t: Time): Double
- def rfcHttp: String
- def rfcJava: String
- def round(dt: Time): Date
round down to the nearest time common time beacon points
- def s: Long
Convenience function for the more direct: (Date.now - Date.unixEpoch).s.toLong
- def sideEffect(f: (Date) => Unit): Date
side effect filter
side effect filter
- Implicit
- This member is added by an implicit conversion from Date toDrxAny[Date] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def someIf(f: (Date) => Boolean): Option[Date]
- Implicit
- This member is added by an implicit conversion from Date toDrxAny[Date] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- val thisAny: Date
- Implicit
- This member is added by an implicit conversion from Date toDrxAny[Date] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def till(maxArg: Date): Bound[Date]
Bound construction since the Range constructor is deprecated
Bound construction since the Range constructor is deprecated
- Implicit
- This member is added by an implicit conversion from Date toBoundOps[Date] performed by method DrxBoundOps in cc.drx.predef.Enrich.
- Definition Classes
- BoundOps
- def toRelativeString: String
- def toString(): String
- Definition Classes
- Date → Any
- def usDay: String
- def usMonthDay: String
- def ~(that: Date): Bound[Date]
- def ~>(time: Time): Bound[Date]
Shadowed Implicit Value Members
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from Date toany2stringadd[Date] 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:(date: any2stringadd[Date]).+(other)
- Definition Classes
- any2stringadd
- def <(that: Date): Boolean
- Implicit
- This member is added by an implicit conversion from Date toOrdered[Date] performed by method orderingToOrdered in scala.math.Ordered.
- 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:(date: Ordered[Date]).<(that)
- Definition Classes
- Ordered
- def <=(that: Date): Boolean
- Implicit
- This member is added by an implicit conversion from Date toOrdered[Date] performed by method orderingToOrdered in scala.math.Ordered.
- 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:(date: Ordered[Date]).<=(that)
- Definition Classes
- Ordered
- def >(that: Date): Boolean
- Implicit
- This member is added by an implicit conversion from Date toOrdered[Date] performed by method orderingToOrdered in scala.math.Ordered.
- 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:(date: Ordered[Date]).>(that)
- Definition Classes
- Ordered
- def >=(that: Date): Boolean
- Implicit
- This member is added by an implicit conversion from Date toOrdered[Date] performed by method orderingToOrdered in scala.math.Ordered.
- 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:(date: Ordered[Date]).>=(that)
- Definition Classes
- Ordered
- def compare(that: Date): Int
- Implicit
- This member is added by an implicit conversion from Date toOrdered[Date] performed by method orderingToOrdered in scala.math.Ordered.
- 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:(date: Ordered[Date]).compare(that)
- Definition Classes
- Ordered
- def compareTo(that: Date): Int
- Implicit
- This member is added by an implicit conversion from Date toOrdered[Date] performed by method orderingToOrdered in scala.math.Ordered.
- 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:(date: Ordered[Date]).compareTo(that)
- Definition Classes
- Ordered → Comparable
Deprecated Value Members
- def ?>(f: (Date) => Boolean): Option[Date]
alias for option if
alias for option if
- Implicit
- This member is added by an implicit conversion from Date toDrxAny[Date] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) to many symbols are hard to undertand
- def epoch: Long
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.13) use ms instead (epoch is a point in time 1970 if epoch is time since epoch it can confusingly then be ms or seconds)
- def |>[B](f: (Date) => B): B
- Implicit
- This member is added by an implicit conversion from Date toDrxAny[Date] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) use
preApply
if you must (symbols are concise without concision)
- def →[B](y: B): (Date, B)
- Implicit
- This member is added by an implicit conversion from Date toArrowAssoc[Date] 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.