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

2008-08-05 Thread Thomas Wright
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 SPAMbridg

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

2008-08-05 Thread Steven D'Aprano
On Tue, 05 Aug 2008 02:25:34 -0700, Will Rocisky wrote: > Actually I am trying to save both date and time in one cell but they are > given separately by user. What's a "cell"? I suggest building a datetime.datetime() object: >>> date = datetime.date(2008, 8, 5) >>> time = datetime.time(19, 54)

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

2008-08-05 Thread Will Rocisky
Actually I am trying to save both date and time in one cell but they are given separately by user. -- http://mail.python.org/mailman/listinfo/python-list