Re: converting epoch time to string (and vice versa)

2007-03-13 Thread Paul Boddie
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

Re: converting epoch time to string (and vice versa)

2007-03-13 Thread Paul McGuire
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

Re: converting epoch time to string (and vice versa)

2007-03-12 Thread Amit Khemka
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

converting epoch time to string (and vice versa)

2007-03-12 Thread Astan Chee
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