esp8266/modules/ntptime: More accurate NTP syncing
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
esp8266: remove print statement in ntptime
There's a print statement here on line 36:
https://github.com/micropython/micropython/blob/master/ports/esp8266/modules/ntptime.py#L36
which it is not possible to avoid. I think we could just remove it, but at the very least we should replace that line with
return utime.localtime()
And let the calling code decide if they want to print it or not.