On Fri, 20 Nov 2009, Riccardo (Jack) Lucchetti wrote:
On Fri, 20 Nov 2009, Riccardo (Jack) Lucchetti wrote:
> On Thu, 19 Nov 2009, Allin Cottrell wrote:
>
>> In addition, since this is a bit tricky, I've added a built-in
>> function "weekday" (in CVS and snapshot) which does the
>> calculation given year, month and day.
Sorry guys, I hit "Send" by mistake. What I wanted to say is that this is
a very useful function. I wonder if we ought to have more date functions,
like for example functions for dealing with the excel convention for
representing dates (which, I believe, sets 0 to 1/1/1901, but I may be
wrong).
We have several date-related functions in gretl's calendar.c, but
other than the new weekday() function they're only for internal
use, not exposed to users. We should probably look through those
functions and see which ones are worth exposing.
Allin Cottrell