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 -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -