|
Syntax |
|
|||||
|---|---|---|---|---|---|---|
|
Semantics |
Converts a string having the XML Schema Duration format into a DateTime object. Duration may be expressed using all the parts of a DateTime type (from year to fractions of a second) and are, therefore, defined as a "six-dimensional space". As the relation between some of the date parts is not fixed (such as the number of days in a month), the order relationship between durations is only partial and the result of a comparison between two durations may be undetermined.
Example:
|
|||||
|
Substitutables |
|
Can be any variable or object attribute having the type String. The format must correspond to the XML Schema Duration format. |
||||
|
|
String literal. The format must correspond to the XML Schema Duration format. |
|||||
|
Error Codes |
Find the related error codes on System Errors of type conversion operations . |
|||||
|
Examples |
This example generates a DateTime object that corresponds to the duration of two days. This object can then be used to do time arithmetic, that is, adding and subtracting durations from dates.
|
|||||