title: calculate difference in minutes between dateTime values in XQuery
body: <p>I want to calculate the difference between date time in minutes</p>
  
  <pre><code>xdmp:parse-dateTime("[Y0001]-[M01]-[D01]T[H01]:[m01]:[s01]","2017-01-17T08:00:00")
  xdmp:parse-dateTime("[Y0001]-[M01]-[D01]T[H01]:[m01]:[s01]","2017-01-17T22:45:00")
  </code></pre>
  
  <p>I tried using </p>
  
  <pre><code>xquery version "0.9-ml"
  fn:subtract-dateTimes-yielding-dayTimeDuration(
    xdmp:parse-dateTime("[Y0001]-[M01]-[D01]T[H01]:[m01]:[s01]","2017-01-17T08:00:00"),
    xdmp:parse-dateTime("[Y0001]-[M01]-[D01]T[H01]:[m01]:[s01]","2017-01-17T22:45:00")
  )
  </code></pre>
  
  <p><strong>Output is</strong> </p>
  
  <pre><code>-PT14H45M
  </code></pre>
  
  <p>I want the output in minutes</p>