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

Pubblicato il: 24 agosto 2022
sul canale di: 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")


In questa pagina del sito puoi guardare il video online Write a Python Program to display the current date and time in Python | della durata di ore minuti seconda in buona qualità , che l'utente ha caricato SilverFoxCode 24 agosto 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 12 volte e gli è piaciuto 0 spettatori. Buona visione!