Using - as separatorimport datetime datetime.datetime.now().strftime("%Y%m%d%H%M%S")
Using _ as separatorimport datetime datetime.datetime.now().strftime("%Y-%m-%d-%H-%M-%S")
import datetime datetime.datetime.now().strftime("%Y_%m_%d_%H_%M_%S")
Using - as separatorimport datetime datetime.datetime.now().strftime("%Y%m%d%H%M%S")
Using _ as separatorimport datetime datetime.datetime.now().strftime("%Y-%m-%d-%H-%M-%S")
import datetime datetime.datetime.now().strftime("%Y_%m_%d_%H_%M_%S")
No comments:
Post a Comment