class

Awscr::Signer::Date

Inherits Comparable < Reference < Object

A wrapper to provide time formats required by signing

date = Date.new(Time.now)
date.ymd
date.iso8601

Constants

DATE_YMD = "%Y%m%d"
ISO8601_BASIC = "%Y%m%dT%H%M%SZ"
RFC1123Z = "%a, %d %b %Y %H:%M:%S %z"

Constructors

new(timestamp : Time)
Source

Instance methods

<=>(other : Time)

Compare the Date object to a Time object

Source
==(other : self)

Returns true if this reference is the same as other. Invokes same?.

Source
iso8601

Return the date in ISO8601 basic format

Source
rfc1123z

Return the date in RFC1123Z format

Source
timestamp
Source
to_s(*args)

Delegate to_s to the underlying time

Source
ymd

Return the date in YYMMDD format

Source