← index #3523PR #3672
Likely Duplicate · high · value 3.393
QUERY · ISSUE

esp8266/modules/ntptime: More accurate NTP syncing

openby puhitakuopened 2017-12-28updated 2024-09-19
enhancementport-esp8266

At present ntptime doesn't care about sub-second part (fraction part of NTP reply.)

I've wrote some lines which handles it and syncs RTC milliseconds-accurate.
https://github.com/puhitaku/micropython/commit/5dd5bed21677250f1b26da2a48558b03c08d9ca1

I think it won't make any incompatibility even if I change this API to set millis implicitly because utime.datetime doesn't care about millis but I can't guarantee it so it's why I adopted kwarg.

Takumi

CANDIDATE · PULL REQUEST

esp8266/modules/ntptime: Add "ms_accuracy" kwarg for more accurate se…

closedby puhitakuopened 2018-03-16updated 2019-10-16

#3523
This PR adds a kwarg "ms_accuracy" which turns on/off millisecond-accurate sync
preserving API compatibility.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied