## XPath/XQuery multiply-dayTimeDuration function

### Summary

Returns the result of multiplying a `xs:dayTimeDuration` by a number.

### Operator Mapping

Defines the semantics of the "*" operator when applied to an `xs:dayTimeDuration` and a numeric value.

### Signature

`op:multiply-dayTimeDuration`(
`\$arg1` as `xs:dayTimeDuration`,
`\$arg2` as `xs:double`
) as `xs:dayTimeDuration`

### Rules

The function returns the result of multiplying the value of `\$arg1` by `\$arg2`. The result is the `xs:dayTimeDuration` whose length in seconds is equal to the length in seconds of `\$arg1` multiplied by the numeric value `\$arg2`.

If `\$arg2` is positive or negative zero, the result is a zero-length duration. If `\$arg2` is positive or negative infinity, the result overflows and is handled as described in .

For handling of overflow and underflow, see .

### Examples

The expression ```op:multiply-dayTimeDuration(xs:dayTimeDuration("PT2H10M"), 2.1)``` returns `xs:dayTimeDuration('PT4H33M')`.

### Error Conditions

A dynamic error is raised if `\$arg2` is `NaN`.

### Notes

Either operand (and therefore the result) may be negative.
{"ft_lang_label":"__label__en","ft_lang_prob":0.69632107,"math_prob":0.96561885,"size":862,"snap":"2022-27-2022-33","text_gpt3_token_len":236,"char_repetition_ratio":0.21212122,"word_repetition_ratio":0.033898305,"special_character_ratio":0.21925753,"punctuation_ratio":0.1595092,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98639995,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-07-05T04:25:36Z\",\"WARC-Record-ID\":\"<urn:uuid:da87b373-f76c-4cbe-aef3-0db7c34351d7>\",\"Content-Length\":\"84322\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:d7c3a1fd-3e8d-4210-bbe8-30688afc44ef>\",\"WARC-Concurrent-To\":\"<urn:uuid:ac7c0783-6376-45fd-b8a1-914ae6dcda2a>\",\"WARC-IP-Address\":\"104.64.212.231\",\"WARC-Target-URI\":\"https://www.altova.com/xpath-xquery-reference/op-multiply-dayTimeDuration\",\"WARC-Payload-Digest\":\"sha1:3CPCNGHMHJYXFKOMWTHJNOHFLA3UQY46\",\"WARC-Block-Digest\":\"sha1:G2POGOHGKLSR42TGSUFP354WPYKMBVEP\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-27/CC-MAIN-2022-27_segments_1656104512702.80_warc_CC-MAIN-20220705022909-20220705052909-00115.warc.gz\"}"}