I'm using Linux.
In C, when I needed to update the date & time I used the function:
settimeofday
which got timeval
structure.
Is there equivalent in Java ?
I have the time in milliseconds (from 1970) and I want to set it (as simple as possible).
(I want to avoid the calculation of year/month/day/hour/min/second while using SimpleDataFormat
.
Is it possible ?
Thanks