Re: python modulus

2009-12-08 Thread j...@nuatech.net
Thanks Nick and Padraig, Stupid mistake on my part. J On Dec 8, 2:04 pm, Nick Johnson wrote: > Hi John, > > On Tue, Dec 8, 2009 at 1:57 PM, j...@nuatech.net > wrote: > > > I'm trying to use Python's Modulus operator and getting weird > > results. > > > I'm trying to calculate the week that a d

Re: python modulus

2009-12-08 Thread Padraig Kitterick
j...@nuatech.net wrote: > I'm trying to use Python's Modulus operator and getting weird > results. > > I'm trying to calculate the week that a date falls on. > > My first week, week1 is: > > week1 = time.mktime(time.strptime("6 Jan 10", "%d %b %y")) > > My test date is: > now = time.mktime(time.str

Re: python modulus

2009-12-08 Thread Nick Johnson
Hi John, On Tue, Dec 8, 2009 at 1:57 PM, j...@nuatech.net wrote: > I'm trying to use Python's Modulus operator and getting weird > results. > > I'm trying to calculate the week that a date falls on. > > My first week, week1 is: > > week1 = time.mktime(time.strptime("6 Jan 10", "%d %b %y")) > > My

python modulus

2009-12-08 Thread j...@nuatech.net
I'm trying to use Python's Modulus operator and getting weird results. I'm trying to calculate the week that a date falls on. My first week, week1 is: week1 = time.mktime(time.strptime("6 Jan 10", "%d %b %y")) My test date is: now = time.mktime(time.strptime("24 Jan 10", "%d %b %y")) (now - we