Thrameos / jpype

Thrameos personal sandbox for enhancements to jpype to send to originell.
Other
0 stars 1 forks source link

Integration of java.util.Date and python datetime #18

Closed Thrameos closed 3 years ago

Thrameos commented 7 years ago

In order to facilitate plotting of data, we need to wrap java.util.Date so that numpy can use java.util.Date directly. This will need to bit flexible as the datetime is immutable and java.util.Date is not. No sure if this is possible. Will need to hide all deprecated members and hide setTime() so that it meets the python contract need for dict. The only downside to this someone may return a Date with the intent to set it. Will likely document the issue.

seilhan3 commented 7 years ago

Intended use for plotting [datetime.datetime.fromtimestamp(ts.getTime()/1000.0) for ts in javaObject.getTimestamps()]