On 28/03/2011 1:38pm, django beginner wrote:
hi django experts,
how do I strip the following string in python (Charfield format)
14:00
3:00
wherein I could compare the results - convert in integer:
Further to my earlier reply ...
>>> x = 3
>>> y = '%02d' % x
>>> y
'03'
>>>
if 14> 3 . . .
thanks in advance!
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.