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.

$ZTIME$ZTIMEConverts the internal system time from the specified format to a printable format.$ZTIME(Htime,format,precision,erropt)$ZT(Htime,format,precision,erropt)ParametersHtimeformatprecisionerroptThe internal system time that can be specified as a numeric value, thename of a variable, or as an expression.Optional — A numeric value that specifies the format in which you wantto express the time value.Optional — A numeric value that specifies the number of decimal placesof precision in which you want to express the time.Optional — The expression returned if the Htime parameter isconsidered invalid.DescriptionThe $ZTIME function converts an internal system time, Htime, specified in the time formatfrom the special variable $HOROLOG or $ZTIMESTAMP, to a printable format. If nooptional parameters are used, the time will be returned in the format: “hh:mm:ss”; where“hh” is hours in a 24–hour clock, “mm” is minutes, and “ss” is seconds. Otherwise, the timewill be returned in the format specified by the value of the format and precision parameters.ParametersformatSupported values are as follows:<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 377

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

Saved successfully!

Ooh no, something went wrong!