/ Published in: Python
For some reason it took me a bit to realize that you had to use datetime.datetime
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
import datetime # ex: 09-06-12-10-01 print datetime.datetime.now().strftime("%y-%m-%d-%H-%M")