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.

Math and Time Functionsshown by the third $ZDATETIME. The final NLS function changes the decimal separatorcharacter for this locale to the European standard (“,”), as shown by the final $ZDATETIME:WRITE !,$ZDATETIME($ZTIMESTAMP,,,2)SET x=$$SetDCFormat^%NLS("DateFormat",4)WRITE !,$ZDATETIME($ZTIMESTAMP,,,2)SET y=$$SetDCFormat^%NLS("DateSeparator",".")WRITE !,$ZDATETIME($ZTIMESTAMP,,,2)SET z=$$SetDCFormat^%NLS("DecimalSeparator",",")WRITE !,$ZDATETIME($ZTIMESTAMP,,,2)$ZDATETIME Compared to $ZDATE$ZDATETIME is similar to $ZDATE except it converts a combined date and time value.$ZDATE only converts a date value. For example:WRITE $ZDATE($HOROLOG)returns the current date, formatted like: 11/25/2002.WRITE $ZDATETIME($HOROLOG)returns the current date and time, formatted like: 11/25/2002 13:53:57.$ZDATE does not support tformat values 5 through 8.See Also• JOB command• $ZDATE function• $ZDATEH function• $ZDATETIMEH function• $ZTIME function• $HOROLOG special variable• $ZTIMESTAMP special variable• More information on locales in Customized National Language Translations354 <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!