LocalDateTimeEncoder

com.sksamuel.avro4s.encoders.LocalDateTimeEncoder

Attributes

Graph
Supertypes
trait Encoder[LocalDateTime]
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def epochMillis(temporal: LocalDateTime): Long
def epochSeconds(temporal: LocalDateTime): Long
def nanos(temporal: LocalDateTime): Long

Inherited methods

final def contramap[U](f: U => LocalDateTime): Encoder[U]

Returns an [[Encoder[U]] by applying a function that maps a U to an T, before encoding as an T using this encoder.

Returns an [[Encoder[U]] by applying a function that maps a U to an T, before encoding as an T using this encoder.

Attributes

Inherited from:
Encoder
override def encode(schema: Schema): LocalDateTime => Any

Attributes

Definition Classes
TemporalWithLogicalTypeEncoder -> Encoder
Inherited from:
TemporalWithLogicalTypeEncoder (hidden)