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

dateTime

dateTime

Constructs a dateTime value from a date value and a time value.

Syntax

fn:dateTime(arg1, arg2)
The
fn:dateTimeAdd (arg1 as xs:date?, arg2 as xs:time?)
is different from the
xs:dateTime
constructor, which accepts a single argument that includes the date and time. Time zone is taken into account when constructing the date/time.

Return Value

  • If only one of the arguments has a time zone, or if both arguments have the same time zone, the result has this time zone.
  • If neither the date nor the date argument has a time zone, the result has no time zone.
  • If the two arguments have different time zones, an error is returned.
  • If the combination does not result in a valid time, for example, the day is 32 or the minute is 61, an error is returned.

Example

The following expression returns
2023-06-12T11:35:29
as the result:
fn:dateTime((xs:date("2023-06-12")), (xs:time("11:35:29")))

0 COMMENTS

We’d like to hear from you!