I want to get the JVM start time and uptime. So far I have done this:
public long getjvmstarttime(){ final long uptime = ManagementFactory.getRuntimeMXBe
Take a look at Pretty Time. It's a library for generating human reabable time strings from timestamps like milliseconds.