Re: [Zope-dev] PythonScript for iso_week

2001-03-14 Thread Chris McDonough
Hee hee. Don't get all the hardcore Python folks in a tizzy now. ;-) - Original Message - From: "Andy McKay" <[EMAIL PROTECTED]> To: "Steve Alexander" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, March 14, 2001 4:50 PM Subjec

Re: [Zope-dev] PythonScript for iso_week

2001-03-14 Thread Andy McKay
Cool. Its all available in Perl as well now. -- Andy McKay. - Original Message - From: "Steve Alexander" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 14, 2001 4:32 AM Subject: [Zope-dev] PythonScript for iso_week > Hi folks, > &g

[Zope-dev] PythonScript for iso_week

2001-03-14 Thread Steve Alexander
Hi folks, At various times in the past, people on this list have asked about getting week numbers from DateTime instances. I recently had this requirement, so I wrote a PythonScript to produce an iso_week tuple (year, week_number, dow_monday_is_one__sunday_is_seven) from a DateTime instance.