HttpDate

org.playframework.cachecontrol.HttpDate
object HttpDate

Defines methods for parsing and formatting HTTP dates.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
HttpDate.type

Members list

Value members

Concrete methods

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

Returns the number of seconds between two dates.

Returns the number of seconds between two dates.

Attributes

def format(dateTime: ZonedDateTime): String
def fromEpochSeconds(timeSinceEpochInSeconds: Int): ZonedDateTime

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

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

Attributes

def now: ZonedDateTime

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

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

Attributes

def parse(dateString: String): ZonedDateTime

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

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

Attributes

Concrete fields

val zone: ZoneId

The GMT time zone.

The GMT time zone.

Attributes