On 11/29/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > How could I alter this so that it adds 8 hours onto the datetime before > storing it in the db?
datetime.timedelta. Sample code: >>> import datetime >>> dt = datetime.datetime.now() >>> dt datetime.datetime(2006, 11, 29, 16, 7, 49, 953205) >>> dt + datetime.timedelta(hours=8) datetime.datetime(2006, 11, 30, 0, 7, 49, 953205) -- "May the forces of evil become confused on the way to your house." -- George Carlin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---