0
How to convert create date of role to utc
I am trying to find the age of a role by getting difference between created time and todays time.. Here I am trying to convert created date and time to utc which is not working as expected.. Can anyone help me with this?
2 Respostas
0
date=key.createdate
date=date.astimezone(pytz.utc)
Using above one to convert obtained date into utc