HAZE
haze is a drop-in replacement to process water vapor to be used with FORCE
Loading...
Searching...
No Matches
Date Validity Check

Functions

bool isValidDate (int year, int month, int day)
 Test if given combination of year, month and day is a valid date.

Detailed Description

Function Documentation

◆ isValidDate()

bool isValidDate ( int year,
int month,
int day )

Test if given combination of year, month and day is a valid date.

This function tests whether a combination of year, month and date does represent a valid date by checking if the year is a value greater or equal to 0 the month is in the interval [1, 12] and the day is in the range from 1 to the corresponding number of maximum days per month (leap year adjusted).

Note
Not all intricacies of date checking are considered.
Parameters
yearValue denoting year.
monthValue denoting month.
dayValue denoting day.
Returns
true Return true if input tuple represents a valid year.
false Return false if input tuple does not represent a valid year.