Answers for "date time library python"

14

python datetime now

import datetime
print(datetime.datetime.now()) #datetime.datetime.now() is the syntax
Posted by: Guest on March-29-2020
5

python datetime module

import datetime as d
time = d.datetime.now()
time = time.strftime("%Y-%m-%d  %H:%M:%S")
           #year-#month-#date  #hour:#minure:#second
print(time)
Posted by: Guest on May-06-2021
14

python datetime now

import datetime
print(datetime.datetime.now()) #datetime.datetime.now() is the syntax
Posted by: Guest on March-29-2020
5

python datetime module

import datetime as d
time = d.datetime.now()
time = time.strftime("%Y-%m-%d  %H:%M:%S")
           #year-#month-#date  #hour:#minure:#second
print(time)
Posted by: Guest on May-06-2021

Python Answers by Framework

Browse Popular Code Answers by Language