object HttpDate
- Source
- HttpDate.scala
- Alphabetic
- By Inheritance
- HttpDate
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
val
Epoch: HttpDate
The
HttpDate
equal toThu, Jan 01 1970 00:00:00 GMT
-
val
MaxValue: HttpDate
The latest value reprsentable by RFC1123,
Fri, 31 Dec 9999 23:59:59 GMT
. -
val
MinValue: HttpDate
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
https://tools.ietf.org/html/rfc7231#page-65
https://tools.ietf.org/html/rfc5322#page-14
-
def
current[F[_]](implicit arg0: Functor[F], arg1: Clock[F]): F[HttpDate]
Constructs an HttpDate from the current time.
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.
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.
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 RFC7321, Section 7.1.1.1
Parses a date according to RFC7321, Section 7.1.1.1
- See also
https://tools.ietf.org/html/rfc7231#page-65
-
def
fromZonedDateTime(dateTime: ZonedDateTime): ParseResult[HttpDate]
Constructs a date from an zoned date-time, truncating to the most recent second.
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 -
def
unsafeFromInstant(instant: Instant): HttpDate
Like
fromInstant
, but throws any parse failures -
def
unsafeFromString(s: String): HttpDate
Like
fromString
, but throws on invalid input -
def
unsafeFromZonedDateTime(dateTime: ZonedDateTime): HttpDate
Like
fromZonedDateTime
, but throws any parse failures
Deprecated Value Members
-
def
now: HttpDate
Constructs an
HttpDate
from the current time.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.- Annotations
- @deprecated
- Deprecated
(Since version Use HttpDate.current instead, this breaks referential transparency) 0.20.16