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
Post a Comment