The Duration type extends BasicType and represents a javax.xml.datatype.Duration type data. A Duration instance can be created from two types of string formats: a long type millisecond value and a duration format string, for example P1DT9H55M31.233S. For more detailed information on the format, see the description of javax.xml.datatype.Duration.