Get Current Time in Specific Timezone in Python (Example) | datetime Today | Specify & Set Manually

Описание к видео Get Current Time in Specific Timezone in Python (Example) | datetime Today | Specify & Set Manually

How to get a timezone aware value from datetime.today in the Python programming language. More details: https://statisticsglobe.com/get-curre...
Python code of this video:

import datetime

date_today = datetime.datetime.today() # Create datetime object for today
print(date_today) # Print today

import pytz

date_today_UCT = datetime.datetime.now(pytz.timezone('UCT')) # Specify timezone manually
print(date_today_UCT) # Print datetime with manual timezone

Follow me on Social Media:
Facebook – Statistics Globe Page:   / statisticsglobecom  
Facebook – R Programming Group for Discussions & Questions:   / statisticsglobe  
Facebook – Python Programming Group for Discussions & Questions:   / statisticsglobepython  
LinkedIn – Statistics Globe Page:   / statisticsglobe  
LinkedIn – R Programming Group for Discussions & Questions:   / 12555223  
LinkedIn – Python Programming Group for Discussions & Questions:   / 12673534  
Twitter:   / joachimschork  

Music by bensound.com

Комментарии

Информация по комментариям в разработке