Re: change the date string into timestamp

2005-04-09 Thread John Ridley
> praba kar wrote: > > > In Php strtotime() will change a date > > string into timestamp. I want to know which > > python function will change a date string > > into timestamp. > To convert a date-string *to* a timestamp (as you asked): >>> import time, calendar >>> date_string = time.strfti

Re: change the date string into timestamp

2005-04-09 Thread Fabio Pliger
You can use some date/time modules as: time built in module datetime wxDatetime from wx just take a look in the documentation... they are very simple to use. F.P. "praba kar" <[EMAIL PROTECTED]> ha scritto nel messaggio news:[EMAIL PROTECTED] > Dear All, > > In Php strtotime() will change a

Re: change the date string into timestamp

2005-04-09 Thread Heiko Wundram
Am Samstag, 9. April 2005 12:10 schrieb Fredrik Lundh: > >>> from email.Utils import parsedate_tz > >>> parsedate_tz(formatdate(x, localtime=1)) > > (2005, 4, 8, 14, 22, 14, 0, 1, 0, 7200) Very cool! Learning something new every day! -- --- Heiko. listening to: Pearl Jam - Dissident see you at

Re: change the date string into timestamp

2005-04-09 Thread Fredrik Lundh
"praba kar" wrote: > In Php strtotime() will change a date > string into timestamp. I want to know which > python function will change a date string > into timestamp. you might save yourself (and everyone else) some time by looking for things in the documentation before you post... > Time stam

Re: change the date string into timestamp

2005-04-09 Thread Heiko Wundram
Am Samstag, 9. April 2005 11:38 schrieb praba kar: > In Php strtotime() will change a date > string into timestamp. I want to know which > python function will change a date string > into timestamp. You want the standard library function strptime from the time module (in case it's a timesta

Re: change the date string into timestamp

2005-04-09 Thread praba kar
--- Michael Hoffman <[EMAIL PROTECTED]> wrote: > praba kar wrote: > > > In Php strtotime() will change a date > > string into timestamp. I want to know which > > python function will change a date string > > into timestamp. > > What do you mean by "a timestamp?" > -- Time stamp means datestr

Re: change the date string into timestamp

2005-04-09 Thread Michael Hoffman
praba kar wrote: In Php strtotime() will change a date string into timestamp. I want to know which python function will change a date string into timestamp. What do you mean by "a timestamp?" -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

change the date string into timestamp

2005-04-09 Thread praba kar
Dear All, In Php strtotime() will change a date string into timestamp. I want to know which python function will change a date string into timestamp. Date string format is below Fri, 8 Apr 2005 09:22:14 +0900 regards Prabahar __