Message12024

Author jamesmudd
Recipients jamesmudd
Date 2018-06-27.19:23:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1530127428.53.0.56676864532.issue2695@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2018-06-27 19:23:48jamesmuddsetrecipients: + jamesmudd
2018-06-27 19:23:48jamesmuddsetmessageid: <1530127428.53.0.56676864532.issue2695@psf.upfronthosting.co.za>
2018-06-27 19:23:48jamesmuddlinkissue2695 messages
2018-06-27 19:23:47jamesmuddcreate