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.

$ZTIMEH$ZTIMEHConverts a time value from a printable format to the <strong>Caché</strong> time special variable format.$ZTIMEH(time,format,erropt)$ZTH(time,format,erropt)ParameterstimeformaterroptThe time value to be converted.Optional — A numeric value that specifies the time format from which youare converting.Optional — The expression returned if the time parameter is consideredinvalid.DescriptionThe $ZTIMEH function converts a time value from a format produced by the $ZTIMEfunction to the format of the special variables $HOROLOG and $ZTIMESTAMP. If theoptional parameter format is not used, the input time must be in the format“hh:mm:ss.fff...”.Otherwise, the same integer format code used to produce the printable timefrom the $ZTIME function must be used for the time to be converted properly.ParametersformatSupported values are as follows:Code-11234DescriptionGet the effective format value from the TimeFormat property of the currentlocale, which defaults to a value of 1. This is the default behavior if you do notspecify format.Input time is in the form "hh:mm:ss" (24-hour clock).Input time is in the form “hh:mm” (24-hour clock).Input time is in the form “hh:mm:ss[AM/PM]” (12-hour clock).Input time is in the form “hh:mm[AM/PM]” (12-hour clock).<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 381

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

Saved successfully!

Ooh no, something went wrong!