object PgDate
Some utilities to deal with Postgres' internal date representations and boundaries.
- Alphabetic
- By Inheritance
- PgDate
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val Epoch: LocalDate
The Postgres Epoch's local date, i.e.: 2000-01-01
- val Max: LocalDate
The maximum date value Postgresql can represent.
- val Min: LocalDate
The minimum date value Postgresql can represent.
The minimum date value Postgresql can represent.
NOTE: this happens to be the Julian calendar epoch, November 24, 4714 BC or -4713-11-24 in ISO NOTE: experimentation has shown that it actually supports up to -4713-12-31T23:59:59.999999
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def dayOffsetAsLocalDate(daysFromEpoch: Int): LocalDate
Convert a day offset from Epoch into a java.time.LocalDate
Convert a day offset from Epoch into a java.time.LocalDate
- daysFromEpoch
the number of days from the epoch (may be negative)
- returns
the java.time.LocalDate represented by the provided offset
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def localDateAsEpochDayOffset(localDate: LocalDate): Int
Convert a java.time.LocalDate into a number of days offset from Epoch
Convert a java.time.LocalDate into a number of days offset from Epoch
- localDate
the date to convert
- returns
the number of days offset from Epoch
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()