sntp-client
v0.0.1
Published
Implementation of the SNTP client for CapacitorJS.
Readme
sntp-client
Implementation of the SNTP client for CapacitorJS.
Install
npm install sntp-client
npx cap syncAPI
initialize(...)
initialize(options: SntpInitOptions) => Promise<void>| Param | Type |
| ------------- | ----------------------------------------------------------- |
| options | SntpInitOptions |
getNetworkTime()
getNetworkTime() => Promise<NetworkTime>Returns: Promise<NetworkTime>
Interfaces
SntpInitOptions
| Prop | Type |
| ------------- | ------------------- |
| server | string |
| timeout | number |
NetworkTime
| Prop | Type |
| ---------- | ------------------- |
| time | number |
