11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

$ZDATETIMEThe monthlist string has the following format:• The first character of the string is a delimiter character (usually a space). The samedelimiter must appear between each month name in monthlist. This delimiter appearsbetween the month, day, and year portions of the returned display date value, which iswhy a space is usually the preferred character.• The month names list should contain twelve entries, corresponding to January throughDecember. It is possible to specify more or less than twelve month names, but if there isno month name corresponding to the month in hdatetime an erroris generated.If you omit monthlist or specify a monthlist value of -1, and dformat is 2, 5, 6, or 7,$ZDATETIME uses the list of month name abbreviations defined in the MonthAbbr propertyof the current locale, which by default is: “ Jan Feb Mar Apr May Jun Jul Aug Sep Oct NovDec”.If you omit monthlist or specify a monthlist value of -1, and dformat is 9, $ZDATETIMEuses the list of month names defined in the MonthName property of the current locale, whichby default is: “ January February March April May June July August September OctoberNovember December”.yearoptWith dformat values 0, 1, 2, 4, or 7, a numeric code that specifies the time window in whichto display the year as a two-digit value. yearopt can be:Value-1012MeaningGet effective yearopt value from YearOption property of current locale whichdefaults to a value of 0.This is the default behavior if you do not specify yearopt.Represent 20th century dates (1900 through 1999) with two-digit years, unlessa process-specific sliding window (established via the %DATE utility) is ineffect. If such a window is in effect, represent only those dates falling withinthe sliding window by two-digit years. Represent all dates falling outside the20th century or outside the process-specific sliding window by four-digit years.Represent 20th century dates with two-digit years and all other dates withfour-digit years.Represent all dates with two-digit years.<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 349

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!