0

I am trying to extract the Current Unix epoch time in milliseconds from this website but I failed. Here is my code

Document document = Jsoup.connect("https://www.freeformatter.com/epoch-timestamp-to-date-converter.html").get();
String content = document.getElementById("epochMs").text();

enter image description here

For some reason, the content is empty. Maybe I need to click on the href link first to stop the running timer? Any idea how to get the timestamp?

Mixalis Navridis
  • 181
  • 2
  • 15

0 Answers0