Guest User

Untitled

a guest
Aug 17th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. from DateTime import DateTime
  2.  
  3. dt = DateTime()
  4.  
  5. print dt.fCommonZ() <== right time wrong TZ
  6. print dt.Date() <== correct
  7. print dt.Time() <== correct
  8. print dt.timezone() <== wrong
  9.  
  10. dt.toZone('Australia/Adelaide')
  11.  
  12. #the following return exactly the same as above
  13. print dt.fCommonZ()
  14. print dt.Date()
  15. print dt.Time()
  16. print dt.timezone()
  17.  
  18. return printed
Add Comment
Please, Sign In to add comment