Головна‎ > ‎Python‎ > ‎

Дата і час

from datetime import datetime

now = datetime.now()

current_time = now.strftime("%H:%M:%S")
print("Current Time =", current_time)


4:12:13