Your myrecord.datetimevalue is already a python datetime.datetime field.

On Sun, Nov 11, 2012 at 6:24 PM, Simon Carr <[email protected]> wrote:
> What is the best way to create a python datetime object from a datetime
> field. i.e
>
> import datetime
> ...
> my_date_time_object = datetime.datetime(myrecord.datetimevalue)
>
> Ultimately what I want to do is add x hours to a datetime value held in a
> field and compare the new time to datetime.now to see if it is time for a
> file to be updated.
>
> Thanks
> Simon
>
> --
>
>
>

-- 



Reply via email to