BirthDate Module
Creates a birth date from a year, a month and a day, and converts a birth date to and from a date.
Nested modules
| Modules | Description |
|
Holds the Dto of a birth date and converts a birth date to and from the Dto. Returns the validation errors for an invalid or future date. |
|
|
Holds a getter and setter pair for the year, the month and the day of a birth date. |
|
|
Gets and sets the year, the month and the day of a birth date, with a unit of measure or as plain integers. |
|
|
Holds the validators for the year, the month and the day of a birth date and for an age under 120 years. |
Functions and values
| Function or value |
Description
|
Full Usage:
create y m d
Parameters:
int<MeasureProduct<year, MeasureOne>>
m : int<MeasureProduct<month, MeasureOne>>
d : int<MeasureProduct<day, MeasureOne>>
Returns: BirthDate
|
|
|
|
Full Usage:
get arg1
Parameters:
BirthDate
Returns: int<MeasureProduct<year, MeasureOne>> * int<MeasureProduct<month, MeasureOne>> * int<MeasureProduct<day, MeasureOne>>
|
|
GenPRES