play.api.data.mapping

DateRules

trait DateRules extends AnyRef

This trait provides default Rule implementations, from String to various date types and format

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DateRules
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def date(format: String = "yyyy-MM-dd", corrector: (String) ⇒ String = identity): Rule[String, Date]

    Rule for the java.util.Date type.

    Rule for the java.util.Date type.

    corrector

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

  9. implicit val date: Rule[String, Date]

    default Rule for the java.util.Date type.

    default Rule for the java.util.Date type. It uses the default date format: yyyy-MM-dd

  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. val isoDate: Rule[String, Date]

    ISO 8601 Reads

  17. implicit val jodaDate: Rule[String, DateTime]

    the default implicit JodaDate reads It uses the default date format: yyyy-MM-dd

  18. def jodaDateRule(pattern: String, corrector: (String) ⇒ String = identity): Rule[String, DateTime]

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

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

    pattern

    a date pattern, as specified in java.text.SimpleDateFormat.

    corrector

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

  19. implicit val jodaLocalDate: Rule[String, LocalDate]

    the default implicit Rule for org.joda.time.LocalDate

  20. implicit def jodaLocalDateRule(pattern: String, corrector: (String) ⇒ String = identity): Rule[String, LocalDate]

  21. implicit def jodaTime: Rule[Long, DateTime]

    default Rule for the java.util.DateTime type.

  22. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  25. implicit val sqlDate: Rule[String, Date]

    the default implicit Rule for java.sql.Date

  26. def sqlDateRule(pattern: String, corrector: (String) ⇒ String = identity): Rule[String, Date]

    Rule for the java.sql.Date type.

    Rule for the java.sql.Date type.

    pattern

    a date pattern, as specified in java.text.SimpleDateFormat.

    corrector

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

  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. def toString(): String

    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped