org.beangle.commons.lang.time

InternetDateFormat

Related Doc: package time

object InternetDateFormat

This object handles Internet date/time strings in accordance with RFC 3339. It provides methods to convert from Calendar to RFC 3339 format strings and to parse these strings back into the same constructs. Strings are parsed in accordance with the RFC 3339 format:

YYYY-MM-DD(T|t|\s)hh:mm:ss[.ddd][tzd]

The tzd represents the time zone designator and is either an upper or lower case 'Z' indicating UTC or a signed hh:mm offset.

https://www.ietf.org/rfc/rfc3339.txt

See also

www.hackcraft.net/web/datetime

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. InternetDateFormat
  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: 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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. val df2: DecimalFormat

  7. val df3: DecimalFormat

  8. val df4: DecimalFormat

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def format(date: Date, zone: TimeZone): String

    Converts the specified Date object to an RFC 3339 date/time string using the specified time zone.

    Converts the specified Date object to an RFC 3339 date/time string using the specified time zone.

    date

    the Date object

    zone

    the time zone to use

    returns

    an RFC 3339 date/time string (does not include milliseconds)

  13. def format(cal: Calendar): String

    Converts the specified Calendar object to an RFC 3339 date/time string.

    Converts the specified Calendar object to an RFC 3339 date/time string. Unlike the toString methods for Date and long, no additional variant of this method taking a time zone is provided since the time zone is built into the Calendar object.

    cal

    the Calendar object

    returns

    an RFC 3339 date/time string (does not include milliseconds)

  14. final def getClass(): Class[_]

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

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

    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  20. def parse(s: String): Calendar

    Parses an RFC 3339 date/time string to a Calendar object.

    Parses an RFC 3339 date/time string to a Calendar object.

    s

    the string to parse

    returns

    the Calendar object

    Exceptions thrown

    IllegalArgumentException if the string is not a valid RFC 3339 date/time string

  21. val pattern: Pattern

    The Regex pattern to match.

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

    Definition Classes
    AnyRef
  23. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped