sntp-client
v0.0.1
Published
Implementation of the SNTP client for CapacitorJS.
Downloads
1
Readme
sntp-client
Implementation of the SNTP client for CapacitorJS.
Install
npm install sntp-client
npx cap sync
API
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 |