fork download
  1. from datetime import datetime
  2.  
  3. d = datetime.fromtimestamp(1556322834.483)
  4. print(d) # 2019-04-26 20:53:54.483000
  5.  
  6. from time import gmtime, strftime
  7. print(strftime("%z", gmtime()))
  8.  
  9. import time
  10. print(time.tzname)
Success #stdin #stdout 0.02s 27968KB
stdin
Standard input is empty
stdout
2019-04-26 23:53:54.483000
+0000
('UTC', 'UTC')