Viva Clipper !

DaysToMonth()

Advertisements

DaysToMonth()

Total number of days from first of Jan to beginning of nMonth.

Syntax

       DaysToMonth( <nMonth>, <lLeapYear> ) -> nDaysToMonth

Arguments

<nMonth> Number of month

<lLeapYear> Is year is leapyear

Description

lLeap is FALSE for a non-leap year but TRUE if it is. If so and nMonth is greater than 2, ndays is incremented

Compliance

DaysToMonth() is a new function in Harbour’s CT3 library.

Platforms

All

Files

Source is dattime2.prg, library is libct.

Seealso

DaysInMonth()

Advertisements

Advertisements