File size: 173 Bytes
bf4ee32
 
 
 
 
 
1
2
3
4
5
6
import datetime

def timename():
    timestamp=str(datetime.datetime.now())
    timename=timestamp.replace(" ","--").replace(":","-").replace(".","-")  
    return(timename)