o

org.apache.spark.sql.delta.util

DateTimeUtils

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
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DateTimeUtils
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type SQLDate = Int
  2. type SQLTimestamp = Long

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final val MICROS_PER_DAY: Long
  5. final val MICROS_PER_MILLIS: Long
  6. final val MICROS_PER_SECOND: Long
  7. final val MILLIS_PER_DAY: Long
  8. final val MILLIS_PER_HOUR: Long
  9. final val MILLIS_PER_MINUTE: Long
  10. final val MILLIS_PER_SECOND: Long
  11. final val NANOS_PER_MICROS: Long
  12. final val NANOS_PER_MILLIS: Long
  13. final val NANOS_PER_SECOND: Long
  14. final val SECONDS_PER_DAY: Long
  15. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  16. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  17. def defaultTimeZone(): TimeZone
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  20. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def fromJavaTimestamp(t: Timestamp): SQLTimestamp

    Returns the number of micros since epoch from java.sql.Timestamp.

  22. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. def getTimeZone(timeZoneId: String): TimeZone
  24. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  25. def instantToDays(instant: Instant): Int
  26. def instantToMicros(instant: Instant): Long
  27. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  28. def microsToInstant(us: Long): Instant
  29. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  33. def timestampToString(tf: TimestampFormatter, us: SQLTimestamp): String
  34. def toString(): String
    Definition Classes
    AnyRef → Any
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped