home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HomeWare 14
/
HOMEWARE14.bin
/
prog
/
ks94an.arj
/
DAYSMON.HDR
< prev
next >
Wrap
Text File
|
1994-04-24
|
826b
|
41 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_DaysInMonth( nMonth, nYear ) --> nDaysInMonth
PARAMETERS:
nMonth : Month of year to test
nYear : Year to test
SHORT:
Return the number of days in any given month, accounting for leap years.
DESCRIPTION:
_DaysInMonth() returns the number of days in a given month, with proper
respect for leap years.
NOTE:
EXAMPLE:
t = _DaysInMonth(8,93)
Result: t = 31
t = _DaysInMonth(2,93)
Result: t = 28
t = _DaysInMonth(month(ctod('02/01/92')),year(ctod('02/01/92')))
Result: t = 29
******************************************************************************/