I would think we can make a reasonable semantic that using timesince or timeuntil on a time object means that time, today. Joe, is that what you expected it to mean? Making this change to the filter would turn what is now an error condition into something useful.
--Ned. http://nedbatchelder.com Malcolm Tredinnick wrote: > On Tue, 2008-01-08 at 11:39 -0800, Joe Murphy wrote: > >> I was trying to run some comparisons in a template on a time, took a >> look at the utils/timesince.py code, ran some more tests, read the >> doco again, saw that the doco didn't mention timesince / timeuntil >> handling time objects, and thought: Hey, I bet that was on purpose, >> but maybe this was something that got overlooked. After that I >> thought: Hey, why not post this on Django users? >> > > It probably more or less is on purpose. Those filters are useful for > displaying how long since (or until) a particular moment in time. A > "time" object isn't specific enough, since it doesn't specify the day, > so it isn't really a moment in time -- it's an infinite number of > moments in time. > > Regards, > Malcolm > > -- Ned Batchelder, http://nedbatchelder.com --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---