Link

Syntax

AddTime(name, time)

Description

Use this method to add a Time value to the JSON Object.

Parameters

Name Description
name Specifies the name of the time that needs to be added as a string.
time Specifies the time to add to the JSON Object as a Time type.

Returns

None.

Example

Local PSM_JSON:Object &oObject = create PSM_JSON:Object();
   
&oObject.AddTime("CurrentTime", %Time);