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