On 2019-03-11, Nelson Bolyard <nboly...@silverspringnet.com> wrote:
> I'm working on an IoT device whose clock only runs when it has power.  When 
> it first starts up, and also after every crash, its clock starts at zero.  
> Today this device uses SNTPv3 to set its clock by contacting a nearby NTP 
> server, and always assumes it is in NTP era zero.  
>
> But 2036 is fast approaching.  I want to know how, using NTPv4, a device like 
> mine can figure out that it is no longer in era zero.  Once it figures out 
> the era that it is in, the rest should be easy.  

If (Era 0 year<2019) then you are in era 1, else in era 0) That should get you 
to 2080
or so. If you really believe your device will  survive till that time,
then you may have to think of something else. 

>
> Advice?

_______________________________________________
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions

Reply via email to