Class Reference
IRIS for UNIX 2024.1.2
InterSystems: The power behind what matters   
Documentation  Search
  [USER] >  [%xsd] >  [duration]
Private  Storage   

datatype class %xsd.duration extends %String

ODBC Type: VARCHAR

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

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
1 3


Summary

Methods
DisplayToLogical IsValid JSONToLogical LogicalToDisplay
LogicalToJSON LogicalToOdbc LogicalToXSD Normalize
XSDToLogical


Parameters

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

Methods

• classmethod IsValid(%val As %RawString) as %Status
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
Converts the %TimeStamp value to the canonical SOAP encoded value.
• classmethod XSDToLogical(%val As %String) as %xsd.duration
Converts the SOAP encoded input dateTime value into a %TimeStamp value.


Copyright (c) 2025 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.