# op:multiply-dayTimeDuration

Multiplies $dayTimeDuration-var with $decimal-var.

### Signatures

op:multiply-dayTimeDuration(xf:dayTimeDuration $dayTimeDuration-var, xs:decimal $decimal-var) —> xf:dayTimeDuration

### Arguments

Data Type | Argument | Description
--- | --- | ---
xf:dayTimeDuration | $dayTimeDuration-var | Contains a time duration that can contain days, hours, minutes, and seconds.
xs:decimal | $decimal-var | Contains a decimal value, for example: 1.1.

### Returns

Returns the dayTimeDuration value of dividing $dayTimeDuration-var with $decimal-var.

### Examples

#### Simple

Multiplying the 1 day value of $dayTimeDuration-var by 1.5 results in 1 day and 12 hours. Multiplying the 1 hour value of $dayTimeDuration-var by 1.5 results in 1 hour and 30 minutes. Adding 1 day and 12 hours to 1 hour and 30 minutes results in a dayTimeDuration of 1 day, 13 hours, and 30 minutes as shown in the following example query:

    <result>{
    	op:multiply-dayTimeDuration(xf:dayTimeDuration("P1DT1H"), 1.5)
    }</result>

The preceding query generates the following result:

    <result>P1DT13H30M</result>

Related Topics

W3C multiply-dayTimeDuration operator description.

W3C dayTimeDuration description.

xf:dayTimeDuration constructor description.