class Awscr::Signer::Date
- Awscr::Signer::Date
- Reference
- Object
Overview
A wrapper to provide time formats required by signing
date = Date.new(Time.now)
date.ymd
date.iso8601
Included Modules
- Comparable(Time)
Defined in:
awscr-signer/core/date.crConstant Summary
-
DATE_YMD =
"%Y%m%d"
-
ISO8601_BASIC =
"%Y%m%dT%H%M%SZ"
-
RFC1123Z =
"%a, %d %b %Y %H:%M:%S %z"
Constructors
Instance Method Summary
-
#<=>(time : Time)
Compare the
Date
object to aTime
object -
#==(other : self)
Returns
true
if this reference is the same as other. -
#iso8601
Return the date in ISO8601 basic format
-
#rfc1123z
Return the date in RFC1123Z format
- #timestamp : Time
-
#to_s(*args)
Delegate to_s to the underlying time
-
#ymd
Return the date in YYMMDD format
Constructor Detail
Instance Method Detail
def ==(other : self)
#
Description copied from class Reference
Returns true
if this reference is the same as other. Invokes same?
.