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.

ExampleThe following example tests the terminal prompt status, and sets it to display the current timeif no prompt has been set.SET x=$ZUTIL(186)WRITE !,"x is: ",xIF x=0 {SET y=$ZUTIL(186,4)WRITE !,"Prompt changed to display current time"}ELSE {WRITE !,"Prompt is set as follows: ",$ZUTIL(186)}See Also• $ZUTIL(68,26) Enable/Disable Namespace Display Default function$ZUTIL(188)• $ZUTIL(69,26) Enable/Disable System-wide Namespace Display Default function$ZUTIL(188)Returns current date and time with fractional seconds.$ZUTIL(188)$ZU(188)DescriptionThis function returns the current local date and time in $HOROLOG format, with fractionalseconds. This value is in local time, adjusted for local time variants, such as Daylight SavingsTime. The value returned is in the following format:ddddd,ttttt.ffffffWhere ddddd is the current date, expressed as a count of the number of days since December31, 1840, where day 1 is January 1, 1841; ttttt is the current time, expressed as a count ofseconds from midnight; and ffffff is fractional seconds, specified to the maximum precisionsupported by your operating system platform.<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 721

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

Saved successfully!

Ooh no, something went wrong!