You are here

3 February 2016

Get current time with timezone in Python. This can be achieved using a library named arrow. It's a datetime library for correct and easy calculations using only one library.

Source code viewer
  1. import arrow
  2.  
  3. utc = arrow.utcnow()
  4. estonian_timestamp = utc.to('Europe/Tallinn')
Programming Language: Python