0.0.1 • Published 3 years ago
sntp-client v0.0.1
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 |
0.0.1
3 years ago