Write a Python Program to display the current date and time in Python |

Опубликовано: 24 Август 2022
на канале: SilverFoxCode
12
0

Write a Python program to display the current date and time.

Import the module datetime
and calculate the currentDateTime = datetime.datetime.now()
and print("Current Date and Time")
with the help of print(currentDateTime.strftime("%Y-%m-%d %H:%M:%S")

import datetime
currentDateTime = datetime.datetime.now()
print("Current Date and Time ")
print(currentDateTime.strftime("%Y-%m-%d %H:%M:%S")


На этой странице сайта вы можете посмотреть видео онлайн Write a Python Program to display the current date and time in Python | длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь SilverFoxCode 24 Август 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 12 раз и оно понравилось 0 зрителям. Приятного просмотра!