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.

$ZDATETIMEH$ZDATETIMEHValidates date and time and converts to internal format.$ZDATETIMEH(datetime,dformat,tformat,monthlist,yearopt,startwin,endwin,mindate,maxdate,erropt)$ZDTH(datetime,dformat,tformat,monthlist,yearopt,startwin,endwin,mindate,maxdate,erropt)ParametersdatetimedformattformatmonthlistyearoptstartwinendwinmindatemaxdateerroptThe date and time value, specified in display format. This is the dateand time that you want to convert to $HOROLOG format.Optional — The date format corresponding to the date portion of thedatetime value.Optional — The time format corresponding to the time portion of thedatetime 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 — The time window in which to display the year as a two-digitvalue.Optional — The start of the sliding window during which dates mustbe represented with two-digit years.Optional — The end of the sliding window during which dates arerepresented with two-digit years.Optional — The lower limit of the range of valid dates.Optional — The upper limit of the range of valid dates.Optional — This parameter suppresses error messages associatedwith invalid or out of range datetime values.Description$ZDATETIMEH validates a specified date and time value and converts it from displayformat to internal format. The corresponding $ZDATETIME function converts a date andtime from internal format to display format. Internal format is the format used by the$HOROLOG or $ZTIMESTAMP. It represents a date and time value as a string of twonumeric values separated by a comma.The exact value returned depends on the parameters you use.<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 355

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

Saved successfully!

Ooh no, something went wrong!