Answers for "convert timespamp to datetime.now"

1

python convert date to timestamp

import time
import datetime
s = "01/12/2011"
time.mktime(datetime.datetime.strptime(s, "%d/%m/%Y").timetuple())
Posted by: Guest on February-04-2021

Python Answers by Framework

Browse Popular Code Answers by Language