xs:duration is underspecified so new xdt:yearMonthDuration and xdt:dayTimeDuration types are defined.
op:add-yearMonthDurations( $arg1 as xdt:yearMonthDuration,
$arg2 as xdt:yearMonthDuration) => xdt:yearMonthDuration
op:subtract-yearMonthDurations( $arg1 as xdt:yearMonthDuration,
$arg2 as xdt:yearMonthDuration) => xdt:yearMonthDuration
op:multiply-yearMonthDuration( $arg1 as xdt:yearMonthDuration,
$arg2 as xs:double) => xdt:yearMonthDuration
op:divide-yearMonthDuration( $arg1 as xdt:yearMonthDuration,
$arg2 as xs:double) => xdt:yearMonthDuration
op:add-dayTimeDurations( $arg1 as xdt:dayTimeDuration,
$arg2 as xdt:dayTimeDuration) => xdt:dayTimeDuration
op:subtract-dayTimeDurations( $arg1 as xdt:dayTimeDuration,
$arg2 as xdt:dayTimeDuration) => xdt:dayTimeDuration
op:multiply-dayTimeDuration( $arg1 as xdt:dayTimeDuration,
$arg2 as xs:double) => xdt:dayTimeDuration
op:divide-dayTimeDuration( $arg1 as xdt:dayTimeDuration,
$arg2 as xs:double) => xdt:dayTimeDuration
Comparisons of Duration and Datetime Values:
op:duration-equal(duration $operand1, duration $operand2) => boolean
op:gYearMonth-equal(gYearMonth $operand1, gYearMonth $operand2) => boolean
op:gYear-equal(gYear $operand1, gYear $operand2) => boolean
op:gMonthDay-equal(gMonthDay $operand1, gMonthDay $operand2) => boolean
op:gMonth-equal(gMonth $operand1, gMonth $operand2) => boolean
op:gDay-equal(gDay $operand1, gDay $operand2) => boolean
op:yearMonthDuration-equal(yearMonthDuration $operand1, yearMonthDuration $operand2) => boolean
op:yearMonthDuration-less-than(yearMonthDuration $operand1, yearMonthDuration $operand2) => boolean
op:yearMonthDuration-greater-than(yearMonthDuration $operand1, yearMonthDuration $operand2) => boolean
op:dayTimeDuration-equal(dayTimeDuration $operand1, dayTimeDuration $operand2) => boolean
op:dayTimeDuration-less-than(dayTimeDuration $operand1, dayTimeDuration $operand2) => boolean
op:dayTimeDuration-greater-than(dayTimeDuration $operand1, dayTimeDuration $operand2) => boolean
op:dateTime-equal(dateTime $operand1, dateTime $operand2) => boolean
op:dateTime-less-than(dateTime $operand1, dateTime $operand2) => boolean
op:dateTime-greater-than(dateTime $operand1, dateTime $operand2) => boolean
op:time-equal(time $operand1, time $operand2) => boolean
op:time-less-than(time $operand1, time $operand2) => boolean
op:time-greater-than(time $operand1, time $operand2) => boolean
op:date-equal(date $operand1, date $operand2) => boolean
op:date-less-than(date $operand1, date $operand2) => boolean
op:date-greater-than(date $operand1, date $operand2) => boolean
Component Extraction Functions on Duration, Date and Time Values:
fn:get-years-from-yearMonthDuration(yearMonthDuration $srcval) => integer
fn:get-months-from-yearMonthDuration(yearMonthDuration $srcval) => integer
fn:get-days-from-dayTimeDuration(dayTimeDuration $srcval) => integer
fn:get-hours-from-dayTimeDuration(dayTimeDuration $srcval) => integer
fn:get-minutes-from-dayTimeDuration(dayTimeDuration $srcval) => integer
fn:get-seconds-from-dayTimeDuration(dayTimeDuration $srcval) => integer
fn:get-year-from-dateTime(dateTime $srcval) => integer
fn:get-month-from-dateTime(dateTime $srcval) => integer
fn:get-day-from-dateTime(dateTime $srcval) => integer
fn:get-hours-from-dateTime(dateTime $srcval) => integer
fn:get-minutes-from-dateTime(dateTime $srcval) => integer
fn:get-seconds-from-dateTime(dateTime $srcval) => integer
fn:get-timezone-from-dateTime(dateTime $srcval) => integer
fn:get-year-from-date(date $srcval) => integer
fn:get-month-from-date(date $srcval) => integer
fn:get-day-from-date(date $srcval) => integer
fn:get-timezone-from-date(date $srcval) => integer
fn:get-hours-from-time(time $srcval) => integer
fn:get-minutes-from-time(time $srcval) => integer
fn:get-seconds-from-time(time $srcval) => integer
fn:get-timezone-from-time(time $srcval) => integer
Time zone adjustment
fn:adjust-dateTime-to-timezone( $arg as xs:dateTime?) => xs:dateTime?
fn:adjust-dateTime-to-timezone( $arg as xs:dateTime?,
$timezone as xdt:dayTimeDuration?) => xs:dateTime?
fn:adjust-date-to-timezone( $arg as xs:date?) => xs:date?
fn:adjust-date-to-timezone( $arg as xs:date?,
$timezone as xdt:dayTimeDuration?) => xs:date?
fn:adjust-time-to-timezone( $arg as xs:time?) => xs:time?
fn:adjust-time-to-timezone( $arg as xs:time?,
$timezone as xdt:dayTimeDuration?) => xs:time?
Adding and Subtracting Durations From dateTime, date and time:
fn:subtract-dateTimes-yielding-yearMonthDuration( $arg1 as xs:dateTime?,
$arg2 as xs:dateTime?) => xdt:yearMonthDuration?
fn:subtract-dateTimes-yielding-dayTimeDuration( $arg1 as xs:dateTime?,
$arg2 as xs:dateTime?) => xdt:dayTimeDuration?
op:subtract-dates($arg1 as xs:date?, $arg2 as xs:date?) => xdt:dayTimeDuration?
op:subtract-times($arg1 as xs:time?, $arg2 as xs:time?) => xdt:dayTimeDuration?
op:add-yearMonthDuration-to-dateTime( $arg1 as xs:dateTime,
$arg2 as xdt:yearMonthDuration) => xs:dateTime
op:add-dayTimeDuration-to-dateTime( $arg1 as xs:dateTime,
$arg2 as xdt:dayTimeDuration) => xs:dateTime
op:subtract-yearMonthDuration-from-dateTime( $arg1 as xs:dateTime,
$arg2 as xdt:yearMonthDuration) => xs:dateTime
op:subtract-dayTimeDuration-from-dateTime( $arg1 as xs:dateTime,
$arg2 as xdt:dayTimeDuration) => xs:dateTime
op:add-yearMonthDuration-to-date( $arg1 as xs:date,
$arg2 as xdt:yearMonthDuration) => xs:date
op:add-dayTimeDuration-to-date( $arg1 as xs:date,
$arg2 as xdt:dayTimeDuration) => xs:date
op:subtract-yearMonthDuration-from-date( $arg1 as xs:date,
$arg2 as xdt:yearMonthDuration) => xs:date
op:subtract-dayTimeDuration-from-date( $arg1 as xs:date,
op:add-dayTimeDuration-to-time( $arg1 as xs:time,
$arg2 as xdt:dayTimeDuration) => xs:time
op:subtract-dayTimeDuration-from-time( $arg1 as xs:time,
$arg2 as xdt:dayTimeDuration) => xs:time