0

We are runing a date and time python code using sublime text 3 ,coding isnt running. An

19th Oct 2017, 7:09 PM
George Hagan
George Hagan - avatar
3 Answers
+ 2
Code and example of it running?
20th Oct 2017, 11:16 PM
Groot
Groot - avatar
0
from datetime import datetime now = datetime.now() mm = str(now.month) dd = str(now.day) yyyy = str(now.year) hour = str(now.hour) mi = str(now.minute) ss = str(now.second) print mm + "/" + dd + "/" + yyyy + " " + hour + ":" + mi + ":" + ss
21st Oct 2017, 11:34 AM
George Hagan
George Hagan - avatar
0
date time now = datetime.now() mm = str(now.month) dd = str(now.day) yyyy = str(now.year) hour = str(now.hour) mi = str(now.minute) ss = str+now.second) print mm + "/" + dd + "/" + yyyy + " " + hour + ":" + mm + ":" + ss
21st Oct 2017, 11:43 AM
George Hagan
George Hagan - avatar