JodaReads

object JodaReads extends JodaReads
Companion:
class
trait JodaReads
class Object
trait Matchable
class Any

Value members

Inherited 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.

Inherited from:
JodaReads
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.

Inherited from:
JodaReads
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.

Inherited from:
JodaReads

Inherited 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

Inherited from:
JodaReads

Implicits

Inherited implicits

implicit val DefaultJodaDateTimeReads: Reads[DateTime]

The default implicit JodaDate reads, using ISO-8601 format

The default implicit JodaDate reads, using ISO-8601 format

Inherited from:
JodaReads
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.

Inherited from:
JodaReads
implicit val DefaultJodaLocalTimeReads: Reads[LocalTime]

the default implicit joda.time.LocalTime reads

the default implicit joda.time.LocalTime reads

Inherited from:
JodaReads