How to access BBB hwclock/system time through java?

Hi all

How to access the hwclock/system time on BBB via java, i succeeded for date but for system time no luck, it prints different one, is there any idea?

hwclock is set to Universal Time Coordinated (UTC) AKA Greenwich Mean Time (GMT)

Should be able to just use the Java built in libraries.

As Dieter said, make sure your hwclock is correctly set to UTC and Java should do all the conversions for local time.