long nanoseconds = System.nanoTime();
long microseconds = nanoseconds / 1000;
long miliseconds = microseconds / 1000;
long seconds = miliseconds / 1000;
long minutes = seconds / 60;
long hours = minutes / 60;
System.out.println (hours);
When ran at ~11:35 am on my Windows machine, prints 26
. There can't be 26 hours in a day and even if there were, it's not even close to the expected result 11
. Why doesn't this work? (Also I don't want to use any Time Date library, I know there are easier ways out there)
Hope this all formats correctly since I'm on my phone. Thanks everyone!