11.7
,{"fieldName":"auth_time","FieldValue":"1539600685"}
,{"fieldName":"exp","FieldValue":"1539600805"}
,{"fieldName":"iat","FieldValue":"1539600685"}
I am working With some accesstoken validation, and getting these time Fields. After checking on net I found :
_____
All of the Apigee internal dates are in the UTC format. The "issued_at" refers to milliseconds since the epoch, which is Jan 1, 1970 UTC.
______
Anyone having a smart way of converting this to datetime in Progress?
It has to be Seconds... so then I can use ADD-INTERVAL(datetime('01/01/1970 00:00:000'),1539600805,'seconds') that gives me a date Close to 15/10/2018 10:50... that has to be correct i hope..
Looks more like seconds!
DEFINE VARIABLE dFix AS DATETIME-TZ NO-UNDO.
dFix = DATETIME-TZ(01/01/1970, 0, 0).
MESSAGE
dFix SKIP
ADD-INTERVAL(dFix, INT64("1539600685"), "seconds") SKIP
ADD-INTERVAL(dFix, INT64("1539600685"), "milliseconds")
VIEW-AS ALERT-BOX INFORMATION BUTTONS OK.