ISO Calendar Extension
Contributed by Boris Gasin
This extension is part of an article published in the February 98 Issue of PowerTimes magazine.
PFC calendar object displays days of the week Sunday through Monday. According to the International Organization for Standardization (ISO) Monday is the first day of the week. The purpose of this extension is to allow the calendar object to comply with either convention.
To allow the configuration of the u_calendar display style following functions were added:
Used to switch between the default (Sunday first ) and ISO (Monday first) display styles. Valid arguments are DISPLAY_ISO and DISPLAY_DEFAULT of_isodaynumber
Replacement for DayNumber(). Returns ISO friendly day number.
mon - 1, tue - 2, ... sun - 7
Overridden the ancestor function to draw the ISO style month. of_setdate
Overridden the ancestor function. Modified to reference the of_isodaynumber when appropriate.
The calendar will default to the original (Sunday first) display style. If ISO display style is required set it using the of_setDisplayStyle() function.
To return to the original display style call the function once more with DISPLAY_DEFAULT argument:
|Download the||About the extension contributor|
|03/02/1998||Initial Revision||Ver. 1.00|
Interested in contributing material to this web site? Send an email to firstname.lastname@example.org, but don't forget to check the contribution guidelines first.
For information or suggestions about this web site please contact email@example.com
sponsored by Dynamic Technology Group.
The information on this site is provided for advice only and not to be considered a contract or a liability against Dynamic Technology Group.