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.

$ZWASCIIConversion from local time to Universal time:SET clock=$ZUTIL(193,$HOROLOG,1)SET stamp=$ZTIMESTAMPWRITE !,"local/UTC date and time: ",$ZDATETIME(clock,1,1,2)WRITE !,"UTC/UTC date and time: ",$ZDATETIME(stamp,1,1,2)See Also• $ZDATETIME function• $ZUTIL(188) Local Date and Time with Fractional Seconds function• $HOROLOG special variable• $ZTIMESTAMP special variable• $ZTIMEZONE special variable$ZWASCIIReturns the numeric interpretations of a two-byte string.$ZWASCII(string,position)$ZWA(string,position)ParametersstringpositionA string. It can be a value, a variable, or an expression. It must be aminimum of two bytes in length.Optional — A starting position in the string, expressed as a positiveinteger.The default is 1. Position is counted in single bytes, not two-bytestrings. The position cannot be the last byte in the string, or beyond theend of the string. A numeric position value is parsed as an integer bytruncating decimal digits, removing leading zeros and plus signs, etc.DescriptionThe value that $ZWASCII returns depends on the parameters you use.• $ZWASCII(string) returns a numeric interpretation of a two-byte string starting at thefirst character position of string.• $ZWASCII(string,position) returns a numeric interpretation of a two-byte string beginningat the starting byte position specified by position.<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 727

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

Saved successfully!

Ooh no, something went wrong!