Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to get the local time in python

from datetime import datetime
import time
now = datetime.now()
while True:
    print(now.strftime("local time :- %X"))
    time.sleep(2)
 
PREVIOUS NEXT
Tagged: #local #time #python
ADD COMMENT
Topic
Name
8+5 =