Get Current Hour, Minute & Second in Python (Example) | Date & Time | datetime Module & now Function

preview_player
Показать описание
Python code of this video:

import datetime # Import datetime

print(my_date)
# 2022-07-05 09:55:34.814728

print(current_hour) # Print hour
# 9

print(current_minute) # Print minute
# 55

print(current_second) # Print second
# 34

Follow me on Social Media:

Рекомендации по теме