Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

date and time in python

import time
time.time()
# In The OutPut It will show no of secs. For EXAMPLE:- Mine is 1668486863.7566664
print(time.ctime(1668486863.7566664))
# Then the Date and Time will seen in Output:- Tue Nov 15 10:04:23 2022
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #date #time #python
ADD COMMENT
Topic
Name
7+7 =