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.

ExampleThe following example extracts the create date from the version string to calculate how oldthe current version of <strong>Caché</strong> is, in days:SET createdate=$PIECE($ZVERSION," ",10,12)WRITE !,"Creation date: ",createdateWRITE !,"Current date: ",$ZDATE($HOROLOG,6)SET nowcount=$PIECE($HOROLOG,",")SET thencount=$ZDATEH(createdate,6)WRITE !,"This version is ",(nowcount-thencount)," days old"See Also• $SYSTEM special variable• $ZUTIL(100)—Operating System Type function• $ZUTIL(67,14)—Client Operating System legacy function$ZVERSION<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 499

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

Saved successfully!

Ooh no, something went wrong!