Return to Snippet

Revision: 14808
at June 12, 2009 10:01 by iloveitaly


Initial Code
import datetime

# ex: 09-06-12-10-01
print datetime.datetime.now().strftime("%y-%m-%d-%H-%M")

Initial URL


Initial Description
For some reason it took me a bit to realize that you had to use datetime.datetime

Initial Title
Python Datetime Usage

Initial Tags
format, python

Initial Language
Python