You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Mike Beckerle (Jira)" <ji...@apache.org> on 2022/03/12 14:53:00 UTC

[jira] [Created] (DAFFODIL-2670) dfdx additional date, time, and dateTime constructors

Mike Beckerle created DAFFODIL-2670:
---------------------------------------

             Summary: dfdx additional date, time, and dateTime constructors
                 Key: DAFFODIL-2670
                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2670
             Project: Daffodil
          Issue Type: New Feature
          Components: Back End, Front End
    Affects Versions: 3.3.0
            Reporter: Mike Beckerle


These functions are needed for enabling convenient conversion of binary date/time data into xs:date, xs:time, or xs:dateTime types.

```dfdlx:date($year as AnyAtomicType, $month as AnyAtomicType, $day as AnyAtomicType): xs:date

dfdlx:time($hour as AnyAtomicType, $minute as AnyAtomicType, $second as AnyAtomicType): xs:time

```

Variations of the time constructor that also allow for timezone information, fractional seconds are possibly needed, but the above, along with the two arg fn:dateTime constructor already defined by DFDL, enable constructing an xs:dateTime type from a bunch of binary components giving each part of the dateTime.

 

fn:dateTime($arg1 as xs:date, $arg2 as xs:time) as xs:dateTime

```



--
This message was sent by Atlassian Jira
(v8.20.1#820001)