From: James M. <re...@bu...> - 2018-06-27 19:23:58
|
New submission from James Mudd <jam...@gm...>: This was inspired by a question on Github here https://github.com/jythontools/jython/issues/105 The existing Jython datetime supports automatic coercion into java.util.Calendar, java.sql.Timestamp, java.sql.Date and java.sql.Time. See __tojava__ in Lib/datetime.py Since Java 8 there are new Date and Time classes introduced see http://www.oracle.com/technetwork/articles/java/jf14-date-time-2125367.html Since these new java.time classes are becoming the standard for handling dates and times in Java it would be nice if Jython supported automatic coercion into these types where appropriate. Hopefully not to difficult maybe a nice new feature for 2.7.2? ---------- messages: 12024 nosy: jamesmudd severity: normal status: open title: Add support for automatic coercion for python datetime into Java LocalDateTime _______________________________________ Jython tracker <re...@bu...> <http://bugs.jython.org/issue2695> _______________________________________ |