InterSystems IRIS Data Platform 2020.4 > Class Reference > ENSLIB namespace > %xsd.duration

%xsd.duration

datatype class %xsd.duration extends %Library.String

ODBC Type: VARCHAR

This data data type represents an XML format duration. Internally, this is stored as a string.

Method Inventory

Parameters

parameter XSDTYPE = duration;
Declares the XSD type used when projecting XML schemas.

Methods

classmethod IsValid(%val As %RawString) as %Status [ Language = objectscript ]
Tests if the logical value %val, which represents a duration value in PnYnMnDTnHnMn[.nnnnnnnn]S format, is valid.
classmethod LogicalToXSD(%val As %xsd.duration) as %String [ Language = objectscript ]
Converts the %TimeStamp value to the canonical SOAP encoded value.
classmethod XSDToLogical(%val As %String) as %xsd.duration [ Language = objectscript ]
Converts the SOAP encoded input dateTime value into a %TimeStamp value.

Inherited Members

Inherited Methods

Feedback