Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Thrameos opened this issue Jun 29, 2017 · 1 comment
Closed

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

Thrameos opened this issue Jun 29, 2017 · 1 comment
Assignees

Comments

@Thrameos
Copy link
Owner

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.

@Thrameos Thrameos self-assigned this Jun 29, 2017
@seilhan3
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants