object DateTimeUtils
Helper functions for converting between internal and external date and time representations. Dates are exposed externally as java.sql.Date and are represented internally as the number of dates since the Unix epoch (1970-01-01). Timestamps are exposed externally as java.sql.Timestamp and are stored internally as longs, which are capable of storing timestamps with microsecond precision.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- DateTimeUtils
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
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
- final val MICROS_PER_DAY: Long
- final val MICROS_PER_MILLIS: Long
- final val MICROS_PER_SECOND: Long
- final val MILLIS_PER_DAY: Long
- final val MILLIS_PER_HOUR: Long
- final val MILLIS_PER_MINUTE: Long
- final val MILLIS_PER_SECOND: Long
- final val NANOS_PER_MICROS: Long
- final val NANOS_PER_MILLIS: Long
- final val NANOS_PER_SECOND: Long
- final val SECONDS_PER_DAY: Long
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def defaultTimeZone(): TimeZone
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
fromJavaTimestamp(t: Timestamp): SQLTimestamp
Returns the number of micros since epoch from java.sql.Timestamp.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getTimeZone(timeZoneId: String): TimeZone
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def instantToDays(instant: Instant): Int
- def instantToMicros(instant: Instant): Long
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def microsToInstant(us: Long): Instant
-
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 timestampToString(tf: TimestampFormatter, us: SQLTimestamp): String
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()