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 FunctionserroptThis parameter suppresses error messages associated with invalid or out of range datetimevalues. Instead of generating or errormessages, the function returns erropt.Notes$ZDATETIMEH and Fractional SecondsUnlike $ZDATETIME, $ZDATETIMEH does not allow you to specify a precision for thetime. Any fractional seconds in the original $ZDATETIME-formatted time are retained inthe value $ZDATETIMEH returns.Note that $HOROLOG does not return fractional seconds.Invalid Values with $ZDATETIMEHYou receive a error in the following conditions:• If you specify an invalid dformat code (an integer value less than -1 or greater than 9, azero, or a non-integer value.)• If you specify an invalid value for tformat (an integer value less than -1 or greater than8, a zero, or a non-integer value.)• If you do not specify a startwin value when yearopt is 3 or 5.You receive a error under the following conditions:• If you specify an invalid value for a date and do not supply an erropt value.• If the given month number is greater than the number of month values in monthlist.• If maxdate is less than mindate.• If endwin is less than startwin.• If startwin and endwin specify a sliding temporal window whose duration is greater than100 years.You receive a error under the following conditions:• If you specify a date (or an offset to “T”) which is earlier than Dec. 31, 1840 or later thanDec. 31, 9999, and do not supply an erropt value.362 <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!