> 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
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
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
"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
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
--- 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
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
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
__