object HttpDate

Defines methods for parsing and formatting HTTP dates.

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

Value Members

  1. def diff(start: ZonedDateTime, end: ZonedDateTime): Seconds

    Returns the number of seconds between two dates.

  2. def format(dateTime: ZonedDateTime): String
  3. def fromEpochSeconds(timeSinceEpochInSeconds: Int): ZonedDateTime

    Produces a DateTime object, given the time since epoch IN SECONDS.

    Produces a DateTime object, given the time since epoch IN SECONDS. Note that most Java methods return TSE in milliseconds, so be careful.

  4. def now: ZonedDateTime

    Returns the current time, in the correct GMT time zone.

  5. def parse(dateString: String): ZonedDateTime

    Parses an HTTP date according to http://tools.ietf.org/html/rfc7231#section-7.1.1.1

  6. val zone: ZoneId

    The GMT time zone.