respAddTimeValue()

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

ParameterTypeDescription
ptrPOINTERMandatoryPointer to field
time6P 0MandatoryNumeric time value in format HH or HHMM or HHMMSS
date8P 0OptionalNumeric data velue in format YYYYMMDD
timeZone5P 0OptionalNumeric 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'