JodaReads

trait JodaReads
Companion:
object
class Object
trait Matchable
class Any
object JodaReads.type

Value members

Concrete methods

def jodaDateReads(pattern: String, corrector: String => String): Reads[DateTime]

Reads for the org.joda.time.DateTime type.

Reads for the org.joda.time.DateTime type.

Value parameters:
corrector

a simple string transformation function that can be used to transform input String before parsing. Useful when standards are not respected and require a few tweaks. Defaults to identity function.

pattern

a date pattern, as specified in org.joda.time.format.DateTimeFormat, or "" to use ISO format.

def jodaLocalDateReads(pattern: String, corrector: String => String): Reads[LocalDate]

Reads for the org.joda.time.LocalDate type.

Reads for the org.joda.time.LocalDate type.

Value parameters:
corrector

string transformation function (See jodaDateReads). Defaults to identity function.

pattern

a date pattern, as specified in org.joda.time.format.DateTimeFormat, or "" to use ISO format.

def jodaLocalTimeReads(pattern: String, corrector: String => String): Reads[LocalTime]

Reads for the org.joda.time.LocalTime type.

Reads for the org.joda.time.LocalTime type.

Value parameters:
corrector

string transformation function (See jodaTimeReads). Defaults to identity function.

pattern

a date pattern, as specified in org.joda.time.format.DateTimeFormat, or "" to use ISO format.

Concrete fields

val JodaDateReads: Reads[DateTime]

The default implicit JodaDate reads, using yyyy-MM-dd format

The default implicit JodaDate reads, using yyyy-MM-dd format

Implicits

Implicits

implicit val DefaultJodaDateTimeReads: Reads[DateTime]

The default implicit JodaDate reads, using ISO-8601 format

The default implicit JodaDate reads, using ISO-8601 format

implicit val DefaultJodaLocalDateReads: Reads[LocalDate]

The default implicit joda.time.LocalDate reads, using ISO-8601 format.

The default implicit joda.time.LocalDate reads, using ISO-8601 format.

implicit val DefaultJodaLocalTimeReads: Reads[LocalTime]

the default implicit joda.time.LocalTime reads

the default implicit joda.time.LocalTime reads