next up previous
Next: prism_calc_newdate Up: Query and Info Routines Previous: Query and Info Routines


prism_get_calendar_type

prism_get_calendar_type (calendar_name, calendar_type_id, ierror)




Table 5.28: prism_get_calendar_type arguments
\begin{table}\begin{tabularx}{16cm}[t]{\vert l\vert l\vert l\vert X\vert}
\hlin...
...\texttt{Integer}&
returned error code\\
\hline
\end{tabularx}\end{table}




This routine returns the name and the ID of the calendar used in the PSMILe. Currently, the only calendar supported is the `Proleptic Gregorian Calendar' (i.e. a Gregorian calendar13extended to dates before 15 Oct 1582) and its ID is 1 (i.e. the PRISM integer name parameter PRISM_Cal_Gregorian = 1, see oasis4/lib/common_oa4/include/prism.inc). Simple calendars with 360 and 365 days are implemented but not directly available to the user. In a future version, the calendar type should be chosen and specified by the user in an XML configuration file, read in from this XML file by the Driver, and transfered to the PSMILe.



Footnotes

... calendar13
The Gregorian calendar considers a leap year every year which is multiple of 4 but not multiple of 100, and every year which is a multiple of 400.


Laure Coquart 2011-12-01