Table of Contents

Search

  1. Preface
  2. Understanding Data Types and Field Properties
  3. Designing Processes
  4. Using and Displaying Data
  5. Designing Guides
  6. Designing Process Objects
  7. Designing Service Connectors
  8. Using App Connections
  9. System Services, Listeners and Connectors
  10. Designing Human Tasks

Design

Design

adjust-time-to-timezone

adjust-time-to-timezone

Adjusts a time value to a specific time zone, or removes the time zone component from the date value.

Syntax

fn:adjust-time-to-timezone(arg, timezone)
The following table describes the arguments:
Argument
Required/
Optional
Description
arg
Required
The time value that is to be adjusted.
The time-value is of type xs:time or is an empty sequence.
timezone
Optional
A duration that represents the time zone to which time-value is to be adjusted.

Return Value

The fn:adjust-time-to-timezone function behaves differently depending on whether the $arg date value already has a time zone, and on the value of the time zone provided as given below:
  • The $timezone argument is expressed as an xs:dayTimeDuration, for example -PT5H for US Eastern Standard Time.
  • If $timezone is an empty sequence, returns an xs:time without a time zone. Otherwise, returns an xs:time with a time zone.
  • If $arg already has a time zone, its value is adjusted to that time zone.
  • If $arg does not already have a time zone, its date part stays the same, and the time is associated with the specified time zone.
  • If $timezone is omitted from the function call, it is assumed to be the implicit time zone.

Examples

The following table contains examples and return values for the adjust-date-to-timezone function:
Examples
Return Values
adjust-time-to-timezone( xs:time('17:00:00'), xs:dayTimeDuration('-PT7H'))
17:00:00-07:00
adjust-time-to-timezone( xs:time('17:00:00-03:00'), xs:dayTimeDuration('-PT7H'))
13:00:00-07:00
adjust-time-to-timezone( xs:time('17:00:00'), ())
17:00:00
adjust-time-to-timezone( xs:time('17:00:00-03:00'), ())
17:00:00
adjust-time-to-timezone( xs:time('17:00:00'))
17:00:00-05:00
adjust-time-to-timezone( xs:time('17:00:00'), xs:dayTimeDuration('-PT20H'))
Error FODT0003
The following table contains examples and return values assuming an implicit time zone of -05:00:
Examples
Return Values
adjust-time-to-timezone( xs:time('17:00:00-03:00'))
15:00:00-05:00
adjust-time-to-timezone( xs:time('22:00:00-08:00'))
01:00:00-05:00
adjust-time-to-timezone( xs:time('01:00:00-02:00'))
22:00:00-05:00

0 COMMENTS

We’d like to hear from you!