TThis procedure adds Time value for existing field. The time is converted from numeric format HHMMSS to ISO standard format HH:MM:SS. Additionally it is possible to pass date and time and time zone in one go. Then the response value is ISO format: YYYY-MM-DDTHH:MM:SS+HH:MM
Parameter | Type | Description | |
---|---|---|---|
ptr | POINTER | Mandatory | Pointer to field |
time | 6P 0 | Mandatory | Numeric time value in format HH or HHMM or HHMMSS |
date | 8P 0 | Optional | Numeric data velue in format YYYYMMDD |
timeZone | 5P 0 | Optional | Numeric time shift in minutes |
The procedure returns pointer of field. If procedure can’t add field, then returns null.
Examples:
xxPtr = respAddField('data': 'dispatchTime');
respAddTimeValue(xxPtr: OLDTIM);
respAddTimeValue(xxPtr: 1245);
//This will add to response '12:45:00'
respAddTimeValue(xxPtr: 124533: 201806028);
//This will add to response '2018-06-28T12:45:33'
respAddTimeValue(xxPtr: 124533: 201806028: 180);
//This will add to response '2018-06-28T12:45:33+03:00'
respAddTimeValue(xxPtr: 12: 201806028: -90);
//This will add to response '2018-06-28T12:00:00-01:30'