Java Date and Time API

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
pminearo
Posts: 3
Joined: Tue Nov 07, 2017 7:00 pm
antibot: No, of course not.

Java Date and Time API

Post by pminearo » Tue Nov 07, 2017 7:09 pm

I have been searching the forums for any reference to support, or future support, for the Java Date and Time API that came out with Java 8. The only reference I see is this one:

http://www.jfree.org/phpBB2/viewtopic.p ... me#p180009

It may be because of what terms I am using for searching. So, it may be a BCAK problem.
Is there a forum discussion already that talks about this?
If not, does JFree chart support the new Java Date and Time API (ie - ZonedDateTime, LocalDateTime, LocalDate)?
If not, are there plans in the future to support the new API?

John Matthews
Posts: 513
Joined: Wed Sep 12, 2007 3:18 pm

Re: Java Date and Time API

Post by John Matthews » Tue Nov 07, 2017 8:56 pm

This example uses ZonedDateTime.parse() to read dates from a text file and create a time series chart.

pminearo
Posts: 3
Joined: Tue Nov 07, 2017 7:00 pm
antibot: No, of course not.

Re: Java Date and Time API

Post by pminearo » Tue Nov 07, 2017 9:30 pm

Thanks for the example.

So, I am assuming there is no support at the moment for the API. However, is there future plans to support the new API?

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: Java Date and Time API

Post by david.gilbert » Tue Nov 07, 2017 11:35 pm

I'd like to make use of the API, but it is a fairly large task so I don't know when it would happen. The two obvious areas for incorporating these classes are the DateAxis (or some replacement) and the TimeSeries classes.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

pminearo
Posts: 3
Joined: Tue Nov 07, 2017 7:00 pm
antibot: No, of course not.

Re: Java Date and Time API

Post by pminearo » Wed Nov 08, 2017 12:11 am

Ok. The reason I ask is we are in the process of switching over to the new API. I'll just put in some converters for now.

Locked