Logo GenPRES

Age Module

Converts an age in years, months and weeks to days and back to months, and writes an age as Dutch text.

Functions and values

Function or value Description

ageToStringNL yrs mos wks dys

Full Usage: ageToStringNL yrs mos wks dys

Parameters:
Returns: string list
yrs : int<MeasureProduct<year, MeasureOne>> option
mos : int<MeasureProduct<month, MeasureOne>> option
wks : int<MeasureProduct<week, MeasureOne>> option
dys : int<MeasureProduct<day, MeasureOne>> option
Returns: string list

ageToStringNlShort yrs mos wks dys

Full Usage: ageToStringNlShort yrs mos wks dys

Parameters:
Returns: string
yrs : int<MeasureProduct<year, MeasureOne>> option
mos : int<MeasureProduct<month, MeasureOne>> option
wks : int<MeasureProduct<week, MeasureOne>> option
dys : int<MeasureProduct<day, MeasureOne>> option
Returns: string

daysToFractionalMonths d

Full Usage: daysToFractionalMonths d

Parameters:
Returns: RationalX

Converts an age in days to months. Each 365 days count as 12 months, the remaining days as 30 days to the month. For whole months this is the inverse of fractionalMonthsToDays. The months after the whole years are capped at 11.99, so 360 to 364 remaining days do not match a rule for the next year up to 5 days early.

d : RationalX
Returns: RationalX

fractionalMonthsToDays m

Full Usage: fractionalMonthsToDays m

Parameters:
Returns: RationalX

Converts an age in months, which may hold a fraction of a month, to days. Each 12 months count as a year of 365 days, each remaining month as 30 days, so 12.5 months is 380 days.

m : RationalX
Returns: RationalX

monthsToDays m

Full Usage: monthsToDays m

Parameters:
Returns: int<MeasureProduct<day, MeasureOne>>

Converts months to days. Each 12 months count as a year of 365 days, each remaining month as 30 days.

m : int<MeasureProduct<month, MeasureOne>>
Returns: int<MeasureProduct<day, MeasureOne>>

Type something to start searching.