sealed trait TimestampFormatter extends Serializable
- Alphabetic
- By Inheritance
- TimestampFormatter
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
- abstract def format(instant: Instant): String
- abstract def format(ts: Timestamp): String
- abstract def format(us: Long): String
-
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
DateTimeExceptionunable to obtain local date or timeDateTimeParseExceptioncan be thrown by new parserParseExceptioncan be thrown by legacy parser
-
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
-
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
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
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
format(localDateTime: LocalDateTime): String
- Annotations
- @throws( classOf[IllegalStateException] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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()
-
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.
- s
- string with timestamp to parse
- returns
microseconds since epoch.
- Annotations
- @throws( classOf[ParseException] ) @throws( classOf[DateTimeParseException] ) @throws( classOf[DateTimeException] ) @throws( classOf[IllegalStateException] )
- Exceptions thrown
DateTimeExceptionunable to obtain local date or timeDateTimeParseExceptioncan be thrown by new parserIllegalStateExceptionThe formatter for timestamp without time zone should always implement this method. The exception should never be hit.ParseExceptioncan be thrown by legacy parser
-
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( ... )
-
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()