Project

Profile

Help

Feature #4070

closed

Provide more options for conversion from Java java.time to XDM date/time values

Added by Michael Kay over 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
2018-12-13
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
trunk
Fix Committed on Branch:
trunk
Fixed in Maintenance Release:
Platforms:

Description

In Saxon 9.9 we've provide a number of new conversions from the Java 8 date/time classes to Saxon date/times. But there are some omissions:

  • No conversion from LocalDate to DateValue or vice versa

  • Conversion from ZonedDateTime or LocalDateTime to DateTimeValue unnecessarily reduces the precision to microseconds

  • No direct conversions to or from XdmAtomicValue

Actions #1

Updated by Michael Kay about 5 years ago

On the 10.0 development branch, I have provided support for conversion of Instant, LocalDate, LocalDateTime, OffsetDateTime, and ZonedDateTime to xs:dateTime and xs:date (where appropriate) across the board, including:

  • constructors for XdmAtomicValue

  • XdmAtomicValue.toXXXX() methods

  • constructors / factory methods / getters in DateTimeValue and DateValue

  • converters in JPConverter and PJConverter

  • conversion preferences in JavaExtensionLibrary.atomicConversionPreference()

Actions #2

Updated by Michael Kay about 5 years ago

  • Status changed from New to Resolved
  • Applies to branch trunk added
  • Fix Committed on Branch trunk added

Implemented, documented, and (cursorily) tested, on the 10.0 development branch

Actions #3

Updated by O'Neil Delpratt almost 5 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in Maintenance Release 9.9.1.3 added

Bug fix applied to the Saxon 9.9.1.3 maintenance release

Please register to edit this issue

Also available in: Atom PDF