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.

• If you specify an otherwise valid date (or an offset to “T”) which is outside the rangedefined by the values assumed for maxdate and mindate and do not supply an erroptvalue.Error Handling with erroptWhen supplied, the erropt parameter only suppresses error messages generated due to invalidor out of range values of datetime. Errors generated due to invalid or out of range values ofother parameters will always generate error messages whether or not erropt has been supplied.For example, an error is always generated when $ZDATETIMEHspecifies a sliding window where endwin is earlier than startwin. Similarly, an error is generated when maxdate is less than mindate.Date Delimiter$ZDATETIMEH uses the value of the DateSeparator property of the current locale as thedelimiter between months, days, and the year when dformat=1 or 4. The delimiter in theODBC date format (dformat=3) is always a “-” , as required by the ODBC standard. Thedefault value of DateSeparator is “/” and all <strong>Caché</strong> documentation examples use this delimiter.Time DelimiterBy default, <strong>Caché</strong> uses the value of the TimeSeparator property of the current locale todetermine the delimiter character for the time string. By default, the delimiter is “:” and thisdelimiter has been used in all of our examples. The delimiter in the ODBC date format(dformat=3) will always be a “:” as required by the ODBC standard.The delimiter for fractional seconds is a decimal point (.).Time SuffixesBy default, <strong>Caché</strong> uses properties in the current locale to determine the names of its timesuffixes. For $ZDATETIMEH, these properties (and their corresponding default values)are:• AM (“AM”)• PM (“PM”)• Midnight (“MIDNIGHT”)• Noon (“NOON”)This documentation will always use these default values for these properties.$ZDATETIMEH<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 363

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

Saved successfully!

Ooh no, something went wrong!