On 3/29/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote:
>
> On 3/29/07, Gilhad <[EMAIL PROTECTED]> wrote:
> >
> >
> > Hello, is there something to use for long time periods like 30 hours or 2
> > years, which can be displayed as time?
>
> > 240:00:00               (alternatively 10d 00:00:00)
>
> Does the timesince filter do what you require?

If I understand correctly, gilhad wants to specify an interval.

Possible solutions: use two PositiveIntegerFields to supply days
and/or minutes and use them to construct a datetime.timedelta object.
Or store a DateTimeField and construct the interval in python via
subtracting some given date (1.1.1970 ??) from the stored value - bit
hackish though...


>
> Yours,
> Russ Magee %-)
>
> >
>


-- 
Honza Kr�l
E-Mail: [EMAIL PROTECTED]
ICQ#:   107471613
Phone:  +420 606 678585

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to