Date manipulation functions.
Date manipulation functions.
(expires-args expiration)
(expires-args expiration now)
Builds the expires argument map. Expiration is in seconds.
A negative expiration meants no expires
Builds the expires argument map. Expiration is in seconds. A negative expiration meants no expires
(is-expired? expires)
(is-expired? expires now)
If now is after the expiration, then it's expired.
expiration must be a valid ISO 8061 date and time in UTC format, if the timezone is omitted, then UTC is assumed.
If now is after the expiration, then it's expired. expiration must be a valid ISO 8061 date and time in UTC format, if the timezone is omitted, then UTC is assumed.
(safe-parse formatter s)
Parse a date time string with the given formatter.
See clj-time.format/parse
Parse a date time string with the given formatter. See clj-time.format/parse
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close