I'm a beginner in swift. I've got json web token (jwt) and after extraction I have this payload:
exdate": 2016-07-13 10:55:27, "pack_id": 1, "sub": 10510, "pack_tag": R,
"ref": sxojAVrPADqrVrJ2JiS8j0JMmQIVSKNepaagwBte9vJH1pSDE2OBhUcia59u2q0tOXTcDSBtsZ1I40yMnkmdAg==,
"nbf": 1465891091, "exp": 1465892291, "iat": 1465891091 etc.
Now, My target is when the current time is greater than the exp I will refresh the token ref from the server. Now the question is: How can i check current time is greater than the exp?