Class KJUR.jws.IntDate
KJUR.jws.IntDate class
Defined in: jws-3.2.js.
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 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. 20130828235959Z)
- 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'