How can I create basic timestamps or dates? (Python 3.4)
Ultimately you want to review the datetime documentation and become familiar with the formatting variables, but here are some examples to get you started: import datetime print(‘Timestamp: {:%Y-%m-%d %H:%M:%S}’.format(datetime.datetime.now())) print(‘Timestamp: {:%Y-%b-%d %H:%M:%S}’.format(datetime.datetime.now())) print(‘Date now: %s’ % datetime.datetime.now()) print(‘Date today: %s’ % datetime.date.today()) today = datetime.date.today() print(“Today’s date is {:%b, %d %Y}”.format(today)) schedule=”{:%b, %d %Y}”.format(today) + …