date.py 120 B

123456
  1. import datetime
  2. def get_date_string():
  3. now = datetime.datetime.now()
  4. return now.strftime("%Y-%m-%d_%H-%M-%S")