Feature #4070
closedProvide more options for conversion from Java java.time to XDM date/time values
100%
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
toDateValue
or vice versa -
Conversion from
ZonedDateTime
orLocalDateTime
toDateTimeValue
unnecessarily reduces the precision to microseconds -
No direct conversions to or from XdmAtomicValue
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()
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
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