Re: find difference in days from YYYYMMDD to YYYYMMDD

2007-09-22 Thread chaelon
On Sep 22, 5:37 am, Konstantinos Pachopoulos <[EMAIL PROTECTED]> wrote: > Hi, > does any body now any such algorith? to find difference in days from > MMDD to MMDD? > Or just an algorithm, that converts MMDD to seconds since the epoch? > > Thanks Seen some comp

Re: find difference in days from YYYYMMDD to YYYYMMDD

2007-09-22 Thread Zentrader
On Sep 22, 2:37 am, Konstantinos Pachopoulos <[EMAIL PROTECTED]> wrote: > Hi, > does any body now any such algorith? to find difference in days from > MMDD to MMDD? > Or just an algorithm, that converts MMDD to seconds since the epoch? > > Thanks For some

Re: find difference in days from YYYYMMDD to YYYYMMDD

2007-09-22 Thread tokland
On 22 sep, 11:37, Konstantinos Pachopoulos <[EMAIL PROTECTED]> wrote: > does any body now any such algorith? to find difference in days from > MMDD to MMDD? Once I needed the same and I wrote: def days_difference(s1, s2): splitdate = lambda s: time.strptime(s,

Re: find difference in days from YYYYMMDD to YYYYMMDD

2007-09-22 Thread John Machin
On 22/09/2007 7:37 PM, Konstantinos Pachopoulos wrote: > Hi, > does any body now any such algorith? to find difference in days from > YYYYMMDD to MMDD? The literal answer to your question is, unsurprisingly, "Yes". Now, what do you really want/need: (a) details of an al

Re: find difference in days from YYYYMMDD to YYYYMMDD

2007-09-22 Thread Diez B. Roggisch
Konstantinos Pachopoulos schrieb: > Hi, > does any body now any such algorith? to find difference in days from > YYYYMMDD to MMDD? > Or just an algorithm, that converts MMDD to seconds since the epoch? See the modules datetime and time in the standard library. D

find difference in days from YYYYMMDD to YYYYMMDD

2007-09-22 Thread Konstantinos Pachopoulos
Hi, does any body now any such algorith? to find difference in days from MMDD to MMDD? Or just an algorithm, that converts MMDD to seconds since the epoch? Thanks -- http://mail.python.org/mailman/listinfo/python-list