Re: [GENERAL] Getting number of days in a month

2000-04-12 Thread Ken Causey
Here's my perl implementation: ### # # lastday( month, year (4 digit) ) # # Returns: last day of the month # ### sub lastday { my $month=shift; my $year= shift; $month--; my @days = (31,0,31,30,31,30,31,31,30

[GENERAL] Getting number of days in a month

2000-04-12 Thread Guillaume Perréal
To obtain the number of days in a month, I wrote this function: CREATE FUNCTION dayCountOfMonth(datetime) RETURNS float AS ' DECLARE theDate ALIAS FOR $1; monthStart date; monthEnddate; BEGIN monthS