11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Math and Time Functionsno 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,$ZDATETIMEH 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, $ZDATETIMEHuses 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-10123456MeaningGet effective yearopt value from YearOption property of current locale whichdefaults to 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.Represent with two-digit years those dates falling within the sliding temporalwindow defined by startwin and (optionally) endwin. Represent all other dateswith four-digit years.When yearopt =3, startwin and endwin are absolute datesin $HOROLOG format.Represent all dates with four-digit years.Represent with two-digit years all dates falling within the sliding window definedby startwin and (optionally) endwin. Represent all other dates with four-digityears. When yearopt=5, startwin and endwin are relative years.Represent all dates in the current century with two-digit years and all otherdates with four-digit years.360 <strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong>

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

Saved successfully!

Ooh no, something went wrong!