Tim Peters wrote:
> [Simen Haugen]
> >>> How can I convert a python datetime to a timestamp? It's easy to convert
> >>> a timestamp to datetime (datetime.datetime.fromtimestamp(), but the
> >>> other way around...?)
>
> [John Machin]
> >> Is the timetuple() method what you want?
> >>
> >> #>>> imp
[Simen Haugen]
>>> How can I convert a python datetime to a timestamp? It's easy to convert
>>> a timestamp to datetime (datetime.datetime.fromtimestamp(), but the
>>> other way around...?)
[John Machin]
>> Is the timetuple() method what you want?
>>
>> #>>> import datetime
>> #>>> n = datetime.da
John Machin <[EMAIL PROTECTED]> wrote:
>On 11/08/2006 11:35 PM, John Machin wrote:
>> On 11/08/2006 11:10 PM, Simen Haugen wrote:
>>> How can I convert a python datetime to a timestamp? It's easy to convert
>>> a timestamp to datetime (datetime.datetime.fromtimestamp(), but the
>>> other way aroun
On 11/08/2006 11:35 PM, John Machin wrote:
> On 11/08/2006 11:10 PM, Simen Haugen wrote:
>> Hi.
>>
>> How can I convert a python datetime to a timestamp? It's easy to convert
>> a timestamp to datetime (datetime.datetime.fromtimestamp(), but the
>> other way around...?)
>>
>> -Simen
>>
>
> Is the
On 11/08/2006 11:10 PM, Simen Haugen wrote:
> Hi.
>
> How can I convert a python datetime to a timestamp? It's easy to convert
> a timestamp to datetime (datetime.datetime.fromtimestamp(), but the
> other way around...?)
>
> -Simen
>
Is the timetuple() method what you want?
#>>> import datetim
Hi.
How can I convert a python datetime to a timestamp? It's easy to convert
a timestamp to datetime (datetime.datetime.fromtimestamp(), but the
other way around...?)
-Simen
--
http://mail.python.org/mailman/listinfo/python-list