I have raspberry Pi 3 with Raspbian Lite Strech. I use it with weewx software. For this purpose I need exact time. So I added to my weewx startup script waiting loop until datetime is actual. It looks like this:
So this mean that after rPi is booted it will wait until datetime is higher than 10/30/2017. I assumed that after boot, time will be something like 1.1.1970 so after it get higher than 10/30/2017 it mean ntp set actual datetime. But even after I removed fake-hwclock (apt-get purge fake-hwclock) and installed ntpdate (apt-get install ntpdate). When I boot my rPi without network connected (i want to test if it forget time), there is still datetime like there was at shutdown. What I need to do to disable this ? How Is possible that raspberry after boot still remember time from before.
Code: Select all
while time.time() < 1509321600: time.sleep(0.5)
Please can you help me ? Thanks.