Perfect this is what I needed!
In fact, it was not working because I was using "import java.sql.Timestamp" instead of "from java.sql import Timestamp".
Thanks so much, I spent too much time on it
Perfect this is what I needed!
In fact, it was not working because I was using "import java.sql.Timestamp" instead of "from java.sql import Timestamp".
Thanks so much, I spent too much time on it
Thanks I keep that in mind!
Oh. I didn't think this would be the issue, since your first post mentions this:
Which should have worked if you were importing with import java.sql.Timestamp
Note also that you might not need to go back to this type exactly.
Maybe you could get away with using system.date.fromMillis(e.time - s.time)
.
But that depends on what you do afterward.
Well as I'm trying to plot the series of data in a TimeSeriesChart I think I need timestamp.
I tried first to use a XY chart but in my case it's not the good one, as the values I want to plot have different timestamp for the X-abciss. So I'm using the TimeSeriesChart, and if I remember I was not able to plot if I didn't have timestamps
Should work just fine with java.util.date
which is what the system.date.*
functions use.
Use system.date.fromMillis()
.