0

In path C:\Users\user\AppData\LocalLow\Sun\Java\Deployment\deployment.properties has a key: deployment.modified.timestamp=1491897442388

My question is how java gen "1491897442388" value of "deployment.modified.timestamp" key? It changed every time I access to Java Control Panel

1 Answers1

1

It looks very much like milliseconds since the Epoch, where the Epoch is defined as January 1, 1970 at midnight at the beginning of the day UTC (note the time zone). Your 1491897442388 corresponds to 2017-04-11T07:57:22.388Z (still UTC).

You may get such a timestamp from for example System.currentTimeMillis() or Instant.now().toEpochMilli().

Ole V.V.
  • 81,772
  • 15
  • 137
  • 161