sealed trait TimestampFormatter extends Serializable

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TimestampFormatter
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def format(instant: Instant): String
  2. abstract def format(ts: Timestamp): String
  3. abstract def format(us: Long): String
  4. abstract def parse(s: String): Long

    Parses a timestamp in a string and converts it to microseconds.

    Parses a timestamp in a string and converts it to microseconds.

    s

    - string with timestamp to parse

    returns

    microseconds since epoch.

    Annotations
    @throws( classOf[ParseException] ) @throws( classOf[DateTimeParseException] ) @throws( classOf[DateTimeException] )
    Exceptions thrown

    DateTimeException unable to obtain local date or time

    DateTimeParseException can be thrown by new parser

    ParseException can be thrown by legacy parser

  5. abstract def validatePatternString(checkLegacy: Boolean): Unit

    Validates the pattern string.

    Validates the pattern string.

    checkLegacy

    if true and the pattern is invalid, check whether the pattern is valid for legacy formatters and show hints for using legacy formatter. Otherwise, simply check the pattern string.

Concrete 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 def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. def format(localDateTime: LocalDateTime): String
    Annotations
    @throws( classOf[IllegalStateException] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. def parseOptional(s: String): Option[Long]

    Parses a timestamp in a string and converts it to an optional number of microseconds.

    Parses a timestamp in a string and converts it to an optional number of microseconds.

    s

    - string with timestamp to parse

    returns

    An optional number of microseconds since epoch. The result is None on invalid input.

    Annotations
    @throws( classOf[ParseException] ) @throws( classOf[DateTimeParseException] ) @throws( classOf[DateTimeException] )
    Exceptions thrown

    DateTimeException unable to obtain local date or time

    DateTimeParseException can be thrown by new parser

    ParseException can be thrown by legacy parser

  17. final def parseWithoutTimeZone(s: String): Long

    Parses a timestamp in a string and converts it to microseconds since Unix Epoch in local time.

    Parses a timestamp in a string and converts it to microseconds since Unix Epoch in local time. Zone-id and zone-offset components are ignored.

    Annotations
    @throws( classOf[ParseException] ) @throws( classOf[DateTimeParseException] ) @throws( classOf[DateTimeException] ) @throws( classOf[IllegalStateException] )
  18. def parseWithoutTimeZone(s: String, allowTimeZone: Boolean): Long

    Parses a timestamp in a string and converts it to microseconds since Unix Epoch in local time.

    Parses a timestamp in a string and converts it to microseconds since Unix Epoch in local time.

    s

    - string with timestamp to parse

    allowTimeZone

    - indicates strict parsing of timezone

    returns

    microseconds since epoch.

    Annotations
    @throws( classOf[ParseException] ) @throws( classOf[DateTimeParseException] ) @throws( classOf[DateTimeException] ) @throws( classOf[IllegalStateException] )
    Exceptions thrown

    DateTimeException unable to obtain local date or time

    DateTimeParseException can be thrown by new parser

    IllegalStateException The formatter for timestamp without time zone should always implement this method. The exception should never be hit.

    ParseException can be thrown by legacy parser

  19. def parseWithoutTimeZoneOptional(s: String, allowTimeZone: Boolean): Option[Long]

    Parses a timestamp in a string and converts it to an optional number of microseconds since Unix Epoch in local time.

    Parses a timestamp in a string and converts it to an optional number of microseconds since Unix Epoch in local time.

    s

    - string with timestamp to parse

    allowTimeZone

    - indicates strict parsing of timezone

    returns

    An optional number of microseconds since epoch. The result is None on invalid input.

    Annotations
    @throws( classOf[ParseException] ) @throws( classOf[DateTimeParseException] ) @throws( classOf[DateTimeException] ) @throws( classOf[IllegalStateException] )
    Exceptions thrown

    DateTimeException unable to obtain local date or time

    DateTimeParseException can be thrown by new parser

    IllegalStateException The formatter for timestamp without time zone should always implement this method. The exception should never be hit.

    ParseException can be thrown by legacy parser

  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped