Skip to content

DateUtil ​

DateUtil~getLifetimeFromExpiresAt(expiresAt) ⇒ number ​

Returns the remaining seconds of expiration from now. If the value is less than or equal zero, then it is considered expired.

Kind: inner method of DateUtil
Returns: number - The number of seconds until the expiration date.

ParamTypeDescription
expiresAtDateThe date at which something (e.g. a token) expires.