| C-Extensions / C API functions | |
Creates an array of short integer values representing year, month, and day of a date.
mint rjulmdy(int4 jdate, int2 mdy[3]);
| Code | Description |
|---|---|
| 1 | The year is a leap year. |
| 0 | The operation was successful. |
| <0 | The operation failed. |
| -1210 | The internal date could not be converted to the character string format. |
The function creates an array of short integer values representing year, month, and day from a date that is in the native database date format.
In the resulting mdy array, mdy[0] is the month (1 to 12), mdy[1] is the day (1 to 31), and mdy[2] is the year (1 to 9999).