I did not see any similar questions on this site. The manpage, while helpful in describing how to use date, did not have much background info. Even the info page (as prescribed in the manpage: info '(coreutils) date invocation'), had little more than how it operates based on the TZ variable.
I'm wondering how the date command line utility works. Specifically,
date +%s
which returns seconds since the epoch, e.g. 1467743297 (seconds since 1970-01-01 00:00:00 UTC).
For example, I'm thinking it doesn't require an internet connection. Then again, does it occasionally try to re-sync with a particular source? If so, how is that source specified? If not, then how much confidence on a given machine does one have in values reported by date?
Section 21.1.5 of the info page implies date only deals with the system/software clock, and then any sync with the hwclock is dependent upon the OS. So... maybe the question is more appropriately "which systems have more accurate date +%s reporting?" I suppose this would also imply the accuracy of date is limited to the accuracy of the machine's hardware clock, especially as influenced by the system/software clock? (e.g. the sw clock could interfere, skewing accuracy, even with a highly-accurate hw clock).