.. _functx_total-minutes-from-duration: ================================== functx:total-minutes-from-duration ================================== The total number of minutes in a dayTimeDuration Description ~~~~~~~~~~~ The functx:total-minutes-from-duration function returns the total number of minutes in $duration. If it is an uneven number of minutes, it will return a fractional part. This function is different from the built-in fn:minutes-from-duration function because the latter will normalize the value and only give you the remainder number of minutes between 1 and 60. For example, fn:minutes-from-duration(xs:dayTimeDuration("PT90M30S")) will return 30, while functx:total-minutes-from-duration(xs:dayTimeDuration("PT90M30S")) will return 90.5. If $duration is the empty sequence, the empty sequence is returned. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parameters** - **Description** * - duration:time() - the duration Examples ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Results** * - functx:total-minutes-from-duration(xs:dayTimeDuration('PT90M')) - 90 * - functx:total-minutes-from-duration(xs:dayTimeDuration('PT1H90M')) - 150 * - functx:total-minutes-from-duration(xs:dayTimeDuration('PT3H')) - 180 * - functx:total-minutes-from-duration(xs:dayTimeDuration('PT1M30S')) - 1.5 See Also ~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`minutes-from-duration`. * :ref:`functx_total-seconds-from-duration`. * :ref:`functx_total-hours-from-duration`. * :ref:`functx_total-days-from-duration`. * :ref:`functx_total-months-from-duration`. * :ref:`functx_total-years-from-duration`.