Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Date and Time in Python

import time

# Getting time and date
local_time = time.localtime(time.time())
print(f"local current time: {local_time}")

# Getting formatted time and date
local_time = time.asctime(time.localtime(time.time()))
print(f"local current time: {local_time}")
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #Date #Time #Python
ADD COMMENT
Topic
Name
6+6 =