I am working on licensing and I need to get the current date and time from time server, that is irrespective of the time and date of the system.
I have tried Joda Time API
and some classes of Java like TimeZone
and I have seen that the value which I get is actually based on the system current time and date.
I have managed to get the TimeZone
of the client machine to which it is set and now I want to query the time server for the current time of that TimeZone
which will be not dependent on the system current date and time.
Will be helpful if I get some suggestions!