getdays
getdays |
Purpose
Get the number of days of a month.
Synopsis
function getdays(y:integer, m:integer):integer
function getdays(d:date):integer
function getdays(dt:datetime):integer
Arguments
y
|
Year
|
m
|
Month
|
d
|
A
date object
|
dt
|
A
datetime object
|
Return value
Number of days for the given month in the specified year.
Example
writeln(getdays(2016,2)) ! displays: 29
Module