calendar modules

djw codeguru at hp.com
Wed Nov 13 17:57:49 EST 2002


Bengt Richter wrote:

> On 13 Nov 2002 11:36:11 -0800, d_blade8 at hotmail.com (Lemniscate) wrote:
>
>
> >Absolutely correct.  However, you can save a teensy bit of typing by
> >using prmonth instead.  For example:
> >
> >
> >>>>calendar.prmonth(1976, 10)
> >
> >   October 1976
> >Su Mo Tu We Th Fr Sa
> >               1  2
> >3  4  5  6  7  8  9
> >10 11 12 13 14 15 16
> >17 18 19 20 21 22 23
> >24 25 26 27 28 29 30
> >31
> >
> >btw, I set the deafult first weekday to Sunday.
> >
> >>>>calendar.setfirstweekday(6)
> >
> >Have fun,
> >
>
> I tried. But checking the day of the week I was born
> didn't work. This calendar seems limited to >= 1970-01-01
> ;-(
>
> Regards,
> Bengt Richter

1/1/1970 == "UNIX Epoch"




More information about the Python-list mailing list