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.

$ZDATETIMEtformatA numeric value that specifies the format in which you want to express the time value. Supportedvalues are:Value-112345678MeaningGet the effective tformat value from the TimeFormat property of the currentlocale, which defaults to a value of 1. This is the default behavior if you do notspecify tformat.Express time in the form "hh:mm:ss" (24-hour clock)Express time in the form “hh:mm” (24-hour clock)Express time in the form “hh:mm:ss[AM/PM]” (12-hour clock)Express time in the form “hh:mm[AM/PM]” (12-hour clock)Express time in the form "hh:mm:ss+/-hh:mm" (24-hour clock). The time isexpressed as local time. The plus (+) or minus (–) suffix shows the offset oflocal time from Coordinated Universal Time (UTC), also known as GreenwichMean Time (GMT). A minus sign (-hh:mm) indicates that the local time isearlier (westward) from Greenwich by the returned offset number of hoursand minutes. A plus sign (+hh:mm) indicates that the local time is later(eastward) from Greenwich by the returned offset number of hours andminutes.Express time in the form “hh:mm+/-hh:mm” (24-hour clock). The time isexpressed as local time. The plus (+) or minus (–) suffix shows the offset oflocal time from Coordinated Universal Time (UTC), also known as GreenwichMean Time (GMT). A minus sign (-hh:mm) indicates that the local time isearlier (westward) from Greenwich by the returned offset number of hoursand minutes. A plus sign (+hh:mm) indicates that the local time is later(eastward) from Greenwich by the returned offset number of hours andminutes.Express time in the form "hh:mm:ssZ" (24-hour clock).The “Z” suffix indicatesthat the time is expressed as Coordinated Universal Time (UTC), also knownas Greenwich Mean Time (GMT), rather than as local time.Express time in the form “hh:mmZ” (24-hour clock). The “Z” suffix indicatesthat the time is expressed as Coordinated Universal Time (UTC), also knownas Greenwich Mean Time (GMT), rather than as local time.For tformat values 1 through 4 (which return local time), the date is separated from the timeby a space. For tformat values 5 through 8 (which return UTC time information), the date isseparated from the time by the letter “T”.<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 347

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

Saved successfully!

Ooh no, something went wrong!