Constructor and Description |
---|
NtpClient(String serverName)
default constructor of the class
|
Modifier and Type | Method and Description |
---|---|
long |
currentTimeMillis()
returns the current time from ntp server in ms from 1970
|
long |
getOffset()
returns the offest from the ntp server to local system
|
public long getOffset() throws IOException
IOException
public long currentTimeMillis() throws IOException
IOException
Copyright © 2015 Lucee