Packages

object Format

Source
Format.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Format
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(fmt: => DateTimeFormatter): Format
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. val defaultInstantFormat: Format

    Default Instant format.

    Default Instant format.

    Example:
    1. scala> import java.time._
      scala> import kantan.codecs.strings._
      
      scala> Format.defaultInstantFormat
           |   .format(Instant.parse("2000-01-01T12:00:00.000Z"))
      res1: String = 2000-01-01T12:00:00Z
      
      scala> Format.defaultInstantFormat
           |   .parseInstant("2000-01-01T12:00:00.000Z")
      res2: StringResult[Instant] = Right(2000-01-01T12:00:00Z)
  8. val defaultLocalDateFormat: Format

    Default LocalDate format.

    Default LocalDate format.

    Example:
    1. scala> import java.time._
      scala> import kantan.codecs.strings._
      
      scala> Format.defaultLocalDateFormat
           |   .format(LocalDate.of(2000, 1, 1))
      res1: String = 2000-01-01
      
      scala> Format.defaultLocalDateFormat
           |   .parseLocalDate("2000-01-01")
      res2: StringResult[LocalDate] = Right(2000-01-01)
  9. val defaultLocalDateTimeFormat: Format

    Default LocalDateTime format.

    Default LocalDateTime format.

    Example:
    1. scala> import java.time._
      scala> import kantan.codecs.strings._
      
      scala> Format.defaultLocalDateTimeFormat
           |   .format(LocalDateTime.of(2000, 1, 1, 12, 0, 0))
      res1: String = 2000-01-01T12:00:00
      
      scala> Format.defaultLocalDateTimeFormat
           |   .parseLocalDateTime("2000-01-01T12:00:00.000")
      res2: StringResult[LocalDateTime] = Right(2000-01-01T12:00)
  10. val defaultLocalTimeFormat: Format

    Default LocalTime format.

    Default LocalTime format.

    Example:
    1. scala> import java.time._
      scala> import kantan.codecs.strings._
      
      scala> Format.defaultLocalTimeFormat
           |   .format(LocalTime.of(12, 0, 0))
      res1: String = 12:00:00
      
      scala> Format.defaultLocalTimeFormat
           |   .parseLocalTime("12:00:00.000")
      res2: StringResult[LocalTime] = Right(12:00)
  11. val defaultOffsetDateTimeFormat: Format

    Default OffsetDateTime format.

    Default OffsetDateTime format.

    Example:
    1. scala> import java.time._
      scala> import kantan.codecs.strings._
      
      scala> Format.defaultOffsetDateTimeFormat
           |   .format(OffsetDateTime.of(2000, 1, 1, 12, 0, 0, 0, ZoneOffset.UTC))
      res1: String = 2000-01-01T12:00:00Z
      
      scala> Format.defaultOffsetDateTimeFormat
           |   .parseOffsetDateTime("2000-01-01T12:00:00.000Z")
      res2: StringResult[OffsetDateTime] = Right(2000-01-01T12:00Z)
  12. val defaultZonedDateTimeFormat: Format

    Default ZonedDateTime format.

    Default ZonedDateTime format.

    Example:
    1. scala> import java.time._
      scala> import kantan.codecs.strings._
      
      scala> Format.defaultZonedDateTimeFormat
           |   .format(ZonedDateTime.of(2000, 1, 1, 12, 0, 0, 0, ZoneOffset.UTC))
      res1: String = 2000-01-01T12:00:00Z
      
      scala> Format.defaultZonedDateTimeFormat
           |   .parseZonedDateTime("2000-01-01T12:00:00.000Z")
      res2: StringResult[ZonedDateTime] = Right(2000-01-01T12:00Z)
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  16. def from(pattern: String): Either[String, Format]

    Attempts to create a new Format from the given pattern.

    Attempts to create a new Format from the given pattern.

    Syntax for pattern strings can be found here.

  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped