I'm doing a private Timestamp timestamp = new Timestamp(System.nanoTime());
in one of my entities when the object is created.
If I system.out the timestamp, I'm getting values like;
2282-08-24 11:25:00.506
2286-04-16 01:47:35.882
What is wrong here?
System.currentTimeMillis()
gives the correct date, but I need more accuracy.
What could be wrong here??