On 13 Mar, 06:52, "Amit Khemka" <[EMAIL PROTECTED]> wrote:
> On 3/13/07, Astan Chee <[EMAIL PROTECTED]> wrote:
>
> > I have a string in this format "DD/MM/YYY" for example:
> > tdate = "18/01/1990"
> > and Im trying to convert this to epoch time, can anyone help?
>
> import calendar
> t = map(int,t
On Mar 13, 12:42 am, Astan Chee <[EMAIL PROTECTED]> wrote:
> Hi,
> I have a string in this format "DD/MM/YYY" for example:
> tdate = "18/01/1990"
> and Im trying to convert this to epoch time, can anyone help?
> Im also trying to convert that epoch time to the string format
> previously. Can anyone
On 3/13/07, Astan Chee <[EMAIL PROTECTED]> wrote:
> Hi,
> I have a string in this format "DD/MM/YYY" for example:
> tdate = "18/01/1990"
> and Im trying to convert this to epoch time, can anyone help?
import calendar
t = map(int,tdate.split('/'))
epochs = calendar.timegm((t[2], t[1], t[0], 0, 0, 0
Hi,
I have a string in this format "DD/MM/YYY" for example:
tdate = "18/01/1990"
and Im trying to convert this to epoch time, can anyone help?
Im also trying to convert that epoch time to the string format
previously. Can anyone help this one too?
Thanks!
Astan
--
http://mail.python.org/mailman/l