Represent a subtype xdt:dayTimeDuration of a Duration
as specified in
XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration.
The DurationYearMonth object represents a period of Gregorian time, with a lexical representation, "PnDTnHnMnS" that contains only year and month components.
XMLGregorianCalendar#add(Duration)
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | DurationDayTimeImpl(boolean isPositive, BigInteger days, BigInteger hours, BigInteger minutes, BigDecimal seconds)
|
| public | |
| protected | DurationDayTimeImpl(String
Lexical representation of a duration. lexicalRepresentation)Construct a |
| protected | DurationDayTimeImpl(final long
Milliseconds of durationInMilliseconds)Duration to create.Create a |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public float | Returns: fractional second valuesThe value space of xs:dayTimeDuration is the set of fractional second values. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| DurationDayTimeImpl | back to summary |
|---|---|
| public DurationDayTimeImpl(boolean isPositive, BigInteger days, BigInteger hours, BigInteger minutes, BigDecimal seconds) | |
| DurationDayTimeImpl | back to summary |
|---|---|
| public DurationDayTimeImpl(boolean isPositive, int days, int hours, int minutes, int seconds) | |
| DurationDayTimeImpl | back to summary |
|---|---|
| protected DurationDayTimeImpl(String lexicalRepresentation) Construct a The datatype All four values are set and availabe from the created The XML Schema specification states that values can be of an arbitrary size.
Implementations may chose not to or be incapable of supporting arbitrarily large and/or small values.
An
| |
| DurationDayTimeImpl | back to summary |
|---|---|
| protected DurationDayTimeImpl(final long durationInMilliseconds) Create a The datatype All four values are set by computing their values from the specified milliseconds
and are availabe using the
The default start instance is defined by Any remaining milliseconds after determining the day, hour, minute and second are discarded.
| |
| convertToCanonicalDayTime | back to summary |
|---|---|
| private void convertToCanonicalDayTime() | |
| getValue | back to summary |
|---|---|
| public float getValue() The value space of xs:dayTimeDuration is the set of fractional second values.
| |