clostack.date

Date manipulation functions.

cloudstack-expires-formatter

expires-args

(expires-args expiration)(expires-args expiration now)

Builds the expires argument map. Expiration is in seconds.

A negative expiration meants no expires

formats

is-expired?

(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.

safe-parse

(safe-parse formatter s)

Parse a date time string with the given formatter.

See clj-time.format/parse