hi I am using a TimeField and want to set the default value as current time.I know the field normalizes to a datetime.time object.In a DateField ,I can put (default=datetime.date.today) and this will set the current day .Similarly I tried (default=datetime.now().time) for TimeField ..and can get a default time value when the page is loaded.But after waiting for a couple of minutes,I loaded the page again(without restarting the server) and the timevalue shown was the old one ,not current time. While using the django admin I can set the time using the javascript clock,but that is not an option when I use my own (beginner level)code..Can anyone tell me how I can get the current time as default value in the field?
Also ,how do I get the duration between two datetime.time objects ?I tried to create two instances of these and can compare them using > or < ,but found that - operation is not supported.Any tips are most welcome thanks harry -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.