TimeField format in Django -


i trying use timefield model consists of mm:ss.xx (ie 43:31.75) format. possible format regular python time object this?

thanks.

absolutely, can find in datetime module here.

http://docs.python.org/release/2.5.2/lib/datetime-time.html

>>> datetime import time >>> time_obj = time(0, 43, 31, 750000) datetime.time(0, 43, 31, 750000) >>> time_obj.strftime('%m:%s.%f') '43:31.750000' 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -