Previous Next

GetDatetimeTZ( ) method (JsonArray)
Gets the JSON string value of one or more elements as a DATETIME-TZ or DATETIME-TZ array.
Return type:
Access:
Applies to:
 
Syntax 
GetDatetimeTZ( INPUT index AS INTEGER )
 
GetDatetimeTZ( INPUT index AS INTEGER,
                      INPUT count AS INTEGER )
When this method is called with one parameter, the value of a single element is returned. Using two parameters directs the AVM to return an ABL array consisting of count elements.
index
An integer value of the element to be returned. Indexing into JsonArrays is 1-based.
count
An integer value specifying the number of elements, starting with the element at index, to be returned to the ABL array.
A JsonError is raised if:
*
index is less than 1, is greater than the length of the JsonArray, or is the Unknown value (?)
*
count is less than 1 or is the Unknown value (?)
*
The sum of index and count is greater than the length of the JsonArray
*
*
Any element cannot be parsed as an ISO 8601 date and time in the "YYYY-MM-DD[THH[:MM[:SS[.sss]]]]Z" or the "YYYY-MM-DD[THH[:MM[:SS[.sss]]]](+|-)HH:MM" format

Previous Next
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates.