Re: [GENERAL] Getting number of days in a month
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
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