STD.Date.FromGregorianYMD( year, month, day )
year | An INTEGER2 year value in the range 0 to 9999. |
month | An UNSIGNED1 month value in the range 1 to 12. |
day | An UNSIGNED1 day value in the range 1 to 31. |
Return: | FromGregorianYMD returns an UNSIGNED4 value. |
The FromGregorianYMD function returns a Days_t value from the year, month, and day parameters representing the number days since 31st December 1BC in the Gregorian calendar (see The Calendar FAQ by Claus Tondering at http://www.tondering.dk/claus/calendar.html).
Example:
IMPORT STD; INTEGER2 MyYear := 2012; UNSIGNED1 MyMonth := 1; UNSIGNED1 MyDay := 1; D := STD.Date.FromGregorianYMD(MyYear,MyMonth,MyDay); //D contains 734503