当前位置:JSON Web Tokens>KJUR.jws.IntDate
手机访问

Class KJUR.jws.IntDate

Decode JWT | JWT generator | JWT verifier | JWS analyzer | JWT Libraries

KJUR.jws.IntDate class
Defined in: jws-3.2.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
IntDate class for time representation for JSON Web Token(JWT) Utility class for IntDate which is integer representation of UNIX origin time used in JSON Web Token(JWT).
Method Summary
Method Attributes Method Name and Description
<static>  
KJUR.jws.IntDate.get(s)
This method will accept following representation of time.
Class Detail
KJUR.jws.IntDate()
IntDate class for time representation for JSON Web Token(JWT) Utility class for IntDate which is integer representation of UNIX origin time used in JSON Web Token(JWT).
Since:
jws 3.0.1
Method Detail
<static> {Integer} KJUR.jws.IntDate.get(s)
This method will accept following representation of time.
  • now - current time
  • now + 1hour - after 1 hour from now
  • now + 1day - after 1 day from now
  • now + 1month - after 30 days from now
  • now + 1year - after 365 days from now
  • YYYYmmDDHHMMSSZ - UTC time (ex. 20240228235959Z)
  • number - UNIX origin time (seconds from 1970-01-01 00:00:00) (ex. 1377714748)
Parameters:
{String} s
string of time representation
Since:
jws 3.0.1
Throws:
"unsupported format: s" when malformed format
Returns:
{Integer} UNIX origin time in seconds for argument 's'
如果你喜欢本站,记得收藏哟。box3.cn