Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I see the clock code accounts for leap years - but what about leap seconds?

Of course, most TOTP systems allow for a little clock drift, so being out by a few seconds should be fine.

What a delightful hack. It makes me want to drag my BBC Micro out of the loft to try something similar!



30s is the default interval for TOTP, and most seem to allow +/- several intervals, so around a minute or two of drift is still OK.


(author) Sadly, no leap second support currently. A future adjustment ;)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: