Python NTP Time Now
Project description
ntptimenow
Python NTP time now
Install
pip install ntptimenow
Used
from ntptimenow import NTPTimeNow
now = NTPTimeNow().ntp_update() # It's datetime.
API
NTPTimeNow(poolservers:str='time.kku.ac.th',version:int=3)
- poolservers is
NTP Server
. (default istime.kku.ac.th
) - version is version of
NTP Server
. (default is3
)
ntp_now()
return datetime.datetime
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ntptimenow-0.4.tar.gz
(1.8 kB
view hashes)