|
DESCRIPTIONData containing dates may be plotted directly and/or used in date arithmetic (using functions). The allowable formats for dates are enumerated herein (see KEY below for explanation of codes).Month, day, and year notations:
Month & year notations
Quarter year notations
Year only notation
DEFAULT NOTATIONThe default notation is mmddyy, unless otherwise specified in the ploticus configuration file .PLOTTING VARIOUS DATE NOTATIONSTo plot data having date notations other than the default, use the format portion of the xscaletype or yscaletype attributes of proc areadef or proc defineunits.For example: #proc areadef xscaletype: date mm/dd/yy Alternate full-date notations: When using notations that do not contain a specific day (such as month year, quarter year, or year only) there may be occasions when it is necessary to specify an exact day point (for example to create an annotation). To do this, an alternate full date format may be used. For example, if yyqn notation is being used, full dates may be given in yy/mm/dd format. For an example this, see bars9
DISPLAY FORMATSIn addition to the above notations, the following additional notations may be used only for displaying dates (such as with the stubformat attribute, for instance). They may not be used for date plotting or arithmetic.Full dates for presentation:
Month & year only: mmyy, mmyyyy Month & day only: mmmdd, mmm/dd, mmm-dd, mmm_dd, mm/dd, mm-dd, mm_dd Year only: 'yy, yyyy Month only: mmm, mm, m Day only: dd d Weekday:
KEY TO CODE ABBREVIATIONSm = single character month (use M for capitalized) mm = numeric month 01-12 mmm = three-character month e.g. jan (use MMM for JAN or Mmm for Jan) mon = month abbreviation e.g. Jan month = full month e.g. January dd = numeric day 01-31 d = numeric day 1-31 yy = numeric year 00-99 yyyy = numeric year 1800-up w = single character weekday (use W for capitalized) www = three character weekday (use Www or WWW for capitalized) n = 1, 2, 3 or 4 (quarter year notations) q = the letter q or Q (quarter year notations) _ (underscore) = space BASIC UNITThe basic date unit is always a day, regardless of which notation is in use. Stub and tic increments may be expressed in months or years, if desired.DATE ARITHMETIC AND FORMATING NOTES1. It is possible to omit weekends. This is usually done in business- or market-related plots. To omit weekends, set the omitweekends attribute in proc datesettings 2. Conversion from two-digit dates to four digit dates is achieved using a pivot year- any two digit year less than this value is assumed to be 21st century. The pivot year (default = 77) is adjustable in the ploticus configuation file or in proc datesettings 3. When three-character months are used, they are always entered and stored as lower case; however the capitalization of the "mmm" can be altered to control the way dates are presented, e.g. Mmm = Jan, MMM = JAN. 4. "Lazy" dates may be used. A lazy date has 00 as the day and/or month portion and is usually used in situations where the day and/or month is unknown or unavailable. When a lazy date is used in date arithmetic the missing month and/or day is converted to 01. By default, lazy dates are not permitted for date arithmetic. They can be allowed by setting an attribute in proc datesettings 5. Localization of date presentation parameters may be done in the ploticus configuration file . 6. There are a number of functions for manipulating dates that may be used in ploticus scripts. Y2K COMPLIANCEPloticus has been tested on a year=2000 machine and found to be year 2000 compliant. |
![]() data display engine Copyright Steve Grubb ![]() |