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.

$ZUTIL(69,32)$ZUTIL(69,32)Sets date range and invalid date behavior system-wide.$ZUTIL(69,32,n)$ZU(69,32,n)ParametersnThe boolean value that specifies whether or not to use <strong>Caché</strong>-style date behaviorsystem-wide.Description$ZUTIL(69,32) performs two functions:• It sets the range of valid dates for $ZDATE. This provides compatibility with either<strong>Caché</strong> or ISM.• It sets the behavior of $ZDATE when an invalid date is input.$ZUTIL(69,32) only affects the behavior of $ZDATE; the other date and time functions areunaffected.Invoking $ZUTIL(69,32) without specifying n returns the current switch setting.ParametersnA switch that sets which date range to use. 0= Enables the standard <strong>Caché</strong> range of validdates (default). 1 = Enables ISM-compatible range of valid dates.NotesSetting the Range of Valid Dates$ZUTIL(69,32,0) sets the range of valid dates for <strong>Caché</strong>. This range is from 0 through2980013, inclusive, which corresponds to dates from 12/31/1840 through 12/31/9999. Thisrange can be restricted by setting the $ZDATE mindate and maxdate parameters.$ZUTIL(69,32,1) sets the range of valid dates for ISM compatibility. This range is from 1through 94232, inclusive, which corresponds to dates from 01/01/1841 through 12/30/2098.This date range is set for any $ZDATE function call which has three or fewer parameters. If<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 665

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

Saved successfully!

Ooh no, something went wrong!