What is XQuery minutes-from-duration function in XML

In this article, we are going to explain minutes-from-duration function in XQuery
  • 1670

ninutes-from-duration Function

This function calculates minutes in a duration. It takes only a single argument-

  • duration

it have fallowing properties- 

  • deterministic

  • context-independent

  • focus-independent

Syntax of ninutes-from-duration Functio


fn:minutes-from-duration(DurationValue)

DurationValue also consist  one of the fallowing types-

  • xdt:dayTimeDuration
  • xs:duration
  • xdt:yearMonthDuration
Example of ninutes-from-duration Function
 

fn:minutes-from-duration(
xdt:dayTimeDuration("PT12M")) returned 12 minutes.

Further Readings

You may also want to read these related articles:

Ask Your Question 

Got a programming related question? You may want to post your question here
 

Categories

More Articles

© 2019 DotNetHeaven. All rights reserved.