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 Functions$ZDATETIMEValidates date and time and converts to display format.$ZDATETIME(hdatetime,dformat,tformat,precision,monthlist,yearopt,startwin,endwin,mindate,maxdate,erropt)$ZDT(hdatetime,dformat,tformat,precision,monthlist,yearopt,startwin,endwin,mindate,maxdate,erropt)ParametershdatetimedformattformatprecisionmonthlistyearoptstartwinendwinmindatemaxdateerroptThe date and time value, specified in internal date and time format.Optional — The format for the returned date value.Optional — The format for the returned time value.Optional — The number of decimal places of precision (fractionalseconds) for the returned time value.Optional — A string containing a list of month names (or month nameabbreviations). This string must begin with a delimiter character, andits 12 entries must be separated by this delimiter character.Optional — A numeric code that specifies the time window in whichto display the year as a two-digit value.Optional — The start of the sliding window during which dates arerepresented with two-digit years.Optional — The end of the sliding window during which dates arerepresented with two-digit years.Optional — A numeric value that specifies the lower limit of the rangeof valid dates. If omitted or specified as -1, this limit is obtained fromthe DateMinimum property of the current locale, which defaults to zero(corresponding to December 31, 1840).Optional — The upper limit of the range of valid dates.Optional — This parameter suppresses error messages associatedwith invalid or out of range hdatetime values.Description$ZDATETIME validates a specified date and time and converts them from $HOROLOGor $ZTIMESTAMP internal format to one of several alternative date and time display formats.The exact value returned depends on the parameters you specify.344 <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!