# fn:days-from-duration - XPath XQuery Reference

Returns the number of days in a duration.deterministiccontext-independentfocus-independentIf $arg is the empty sequence, the function returns the empty sequence.Otherwise, the function returns an xs:integer representing the days
            component in the value of $arg. Given that a duration
               is a ($months, $seconds) tuple, the result is the value of ($seconds idiv 86400).If $arg is a negative duration then the result will be negative.If $arg is an xs:yearMonthDuration the function returns 0.fn:days-from-duration(xs:dayTimeDuration("P3DT10H"))3fn:days-from-duration(xs:dayTimeDuration("P3DT55H"))5fn:days-from-duration(xs:yearMonthDuration("P3Y5M"))0