HttpDate

object HttpDate
Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def current[F[_]](implicit evidence$1: Functor[F], evidence$2: Clock[F]): F[HttpDate]

Constructs an HttpDate from the current time. Starting on January 1,n 10000, this will throw an exception. The author intends to leave this problem for future generations.

Constructs an HttpDate from the current time. Starting on January 1,n 10000, this will throw an exception. The author intends to leave this problem for future generations.

def fromEpochSecond(epochSecond: Long): ParseResult[HttpDate]

Constructs a date from the seconds since the Epoch. If out of range, returns a ParseFailure.

Constructs a date from the seconds since the Epoch. If out of range, returns a ParseFailure.

def fromInstant(instant: Instant): ParseResult[HttpDate]

Constructs a date from an instant, truncating to the most recent second. If out of range, returns a ParseFailure.

Constructs a date from an instant, truncating to the most recent second. If out of range, returns a ParseFailure.

def fromString(s: String): ParseResult[HttpDate]

Parses a date according to RFC7231, Section 7.1.1.1

Parses a date according to RFC7231, Section 7.1.1.1

See also
def fromZonedDateTime(dateTime: ZonedDateTime): ParseResult[HttpDate]

Constructs a date from an zoned date-time, truncating to the most recent second. If out of range, returns a ParseFailure.

Constructs a date from an zoned date-time, truncating to the most recent second. If out of range, returns a ParseFailure.

def unsafeFromEpochSecond(epochSecond: Long): HttpDate

Like fromEpochSecond, but throws any parse failures

Like fromEpochSecond, but throws any parse failures

def unsafeFromInstant(instant: Instant): HttpDate

Like fromInstant, but throws any parse failures

Like fromInstant, but throws any parse failures

def unsafeFromString(s: String): HttpDate

Like fromString, but throws on invalid input

Like fromString, but throws on invalid input

def unsafeFromZonedDateTime(dateTime: ZonedDateTime): HttpDate

Like fromZonedDateTime, but throws any parse failures

Like fromZonedDateTime, but throws any parse failures

Deprecated methods

@deprecated("0.20.16", "Use HttpDate.current instead, this breaks referential transparency")

Constructs an HttpDate from the current time. Starting on January 1,n 10000, this will throw an exception. The author intends to leave this problem for future generations.

Constructs an HttpDate from the current time. Starting on January 1,n 10000, this will throw an exception. The author intends to leave this problem for future generations.

Deprecated

Concrete fields

The HttpDate equal to Thu, Jan 01 1970 00:00:00 GMT

The HttpDate equal to Thu, Jan 01 1970 00:00:00 GMT

The latest value reprsentable by RFC1123, Fri, 31 Dec 9999 23:59:59 GMT.

The latest value reprsentable by RFC1123, Fri, 31 Dec 9999 23:59:59 GMT.

The earliest value reprsentable as an HTTP-date, Mon, 01 Jan 1900 00:00:00 GMT.

The earliest value reprsentable as an HTTP-date, Mon, 01 Jan 1900 00:00:00 GMT.

The minimum year is specified by RFC5322 as 1900.

See also