On Mon, 2007-04-02 at 09:21 +0800, Russell Keith-Magee wrote:
> On 4/2/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> >
> > Is there an easy way to say "today - 3 days" just using the datetime
> > module? I can't think of one off the top of my head that isn't as
> > complex as LazyDate(), but that may be because it's Monday.
> 
> How about:
> 
> lambda : datetime.now() + datetime.timedelta(days=3)

Yep, you're right. Must be Monday. :-(

I withdraw my objection. Nuke it.

Malcolm


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to