Java Converting 19-digit Unix Timestamp to a Readable Date
问题 I am trying to convert 19 digit Unix timestamp such as 1558439504711000000 (one and a half quintillion) into a readable date/time format. My timestamp ends with 6 zeros which suggests the time is in nano seconds. I have come across some examples where people have used time zones which I don't need. Another example uses ofEpochSecond like so: Instant instant = Instant.ofEpochSecond(seconds, nanos); But I am not sure whether I need to use ofEpochSecond. The code below gives my most recent