How to concatenate datetime.date object and datetime.time object

Thomas Wright tew24 at spam.ac.uk
Tue Aug 5 06:16:21 EDT 2008


Will Rocisky wrote:
> Actually I am trying to save both date and time in one cell but they
> are given separately by user.

http://docs.python.org/lib/datetime-datetime.html indicates that the
function you're looking for is datetime.datetime.combine(d, t).

HTH!

-- 
I'm at CAMbridge, not SPAMbridge



More information about the Python-list mailing list