Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-1128

DPath: Functions seconds-from-time and seconds-from-dateTime not returning fractional seconds

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • s15
    • s15
    • None
    • None

      Functions fn:seconds-from-dateTime and fn:seconds-from-time should return a xs:decimal but they are only returning whole numbers. xs:dateTime and xs:time show the fractional seconds so the data is parsed correctly, but then the functions cut off the decimal.

      See tests:
      test_xfromtime_02
      test_secondsfromdatetime_03

      In files:
      daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section23/dfdl_functions/Functions.tdml
      daffodil-test/src/test/scala-debug/edu/illinois/ncsa/daffodil/section23/dfdl_expressions/TestDFDLExpressionsDebug.scala

              efinnegan Elizabeth Finnegan
              efinnegan Elizabeth Finnegan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 20 minutes
                  20m