I have a unix time since epoc in milisecond e.g.: 1505913038295
I need to slice this into two things. So I can use with the Java Instant class method.
Instant ofEpochSecond(long epochSecond, long nanoAdjustment)
Seconds since epoch (This I can do) long secondsSince1970 = milisecondsSince1970 / 1000;
This I need help. I need to take the miliseconds remainder, say 295, (1st Question: How do I get the remainder) then convert that to nanoseconds, then get the current System.nanoTime() and add that to the nano ramainder.
Wed Sep 20 2017 13:21:33 + [ remainder mili in nano + nono now] [seconds since epoc] + [miliseconds since epoc in nano + nono ]
Then hopefully I can call Instant.ofEpochSecond, something like this.
Instant convertedTimestamp = Instant.ofEpochSecond(secondsSince1970, remaindingNanoTime % 1000000000L);
I hope this makes sence.