Spaces:
No application file
No application file
Create timedate.py
Browse files- timedate.py +6 -0
timedate.py
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import datetime
|
2 |
+
|
3 |
+
def timename():
|
4 |
+
timestamp=str(datetime.datetime.now())
|
5 |
+
timename=timestamp.replace(" ","--").replace(":","-").replace(".","-")
|
6 |
+
return(timename)
|