Certainly, there's always more than one way to solve a problem, and I never
said that it couldn't be done in Witango.
My point was that there's not much pre-built for us in Witango, we each have
to 'roll our own' as it were for each of these types of days of observance.
Since I have a bunch of routines that solve this and similar date problem
that can work client-side and/or server-side with Witango, I'd though I'd
offer them to the group.
You're not obliged to use them. I'm just sharing because I found 'em handy.

----- Original Message ----- 
From: "Alan Wolfe" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, 01 February, 2007 11:57
Subject: Re: Witango-Talk: Witango's lack of Date methods


> "or the third Monday of October"
>
> Unfortunately I dont have the witango documentation handy where I am
> at but I once wrote a calendar in witango that showed holidays and it
> really wasn't that difficult at all.
>
> If you look at the date format functions there are lots of useful
> outputs such as being able to have witango tell you what day of the
> week a certain date is.
>
> How i would find the third monday of october is i would see what day
> of the week october 1st, 2007 (or whatever year you were looking for)
> was on.
>
> From there it's as simple as adding a certain number of days to oct 1
2007.
>
> For instance if the oct 1 was a tuesday, the third monday would be 20
> days after.  If oct 1 was a friday, the third monday would be 17 days
> after.
>
>
>
> On 1/31/07, Anthony M. Humphreys <[EMAIL PROTECTED]> wrote:
> > Unfortunately, Witango's own built-in methods for manipulating dates and
> > times are really quite limited.
> > Try writing native Witango code to calculate Easter, or the third Monday
of
> > October, or many other dates of observance or Holidays. Humph.
> >
> > Fortunately, Witango can execute JavaScript code. However, JavaScript's
code
> > is not much better than Witango's for this sort of stuff.
> >
> > But I do happen to have a set of JavaScript Routines that you can use
for
> > doing date/time calculations of various kinds. These routines are ported
> > from the "Standard C Date/Time Library" by Lance Latham. And they happen
to
> > be happen to be especially good for finding dates of observance
(Holidays).
> > Examples of these in use can be found at
> > http://humphreys.org/js/scdtl/test/
> >
> > I've attached the zip, but you can also download these individually from
> > http://humphreys.org/js/scdtl/
> >
> > These will client side or in Witango in the Script action,or within a
> > <@SCRIPT> block.
> >
> > These are for the Witango community to use at it sees fit.
> >
> > Anthony -
> >
> >
> > ________________________________________________________________________
> > TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
> >
> ________________________________________________________________________
> TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
>
>
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to