Time.gov was upgraded today
time.gov
time.gov
The Navy offers a similar online time service although it is clearly far less developed from a design perspective (https://www.usno.navy.mil/USNO/time/display-clocks/simpletim...). However, what's perhaps more useful is that the Navy continues to offer a telephone time service (202-762-1401) while NIST does not. Additionally, the GPS time, while operated by the Air Force, is precisely synchronized to the Navy time plus or minus a known offset (due to the decision to no longer apply leap seconds to the GPS constellation to avoid leap-second-related problems).
There is some history here. The NIST is interested in timekeeping from a metrological perspective since it is important to many commercial and scientific pursuits. The Navy, on the other hand, has long been interested in accurate timekeeping because it is required for celestial navigation. The transit telescope maintained at the Naval Observatory comes from the legacy of the Naval Observatory as a tool to correctly adjust the clocks used by ships at sea for navigation. Similarly, many of the most significant advances in mechanical timekeeping were spurred by the need for compact and reliable clocks for use at sea.
The Navy operates master clock equipment at Schriever AFB for closer proximity to the NIST equipment at Boulder, but the primary means of comparison of the two time bases is by observing the GPS time. Because of the simplicity and low cost of GPS time sources, GPS is as ubiquitous for time measurement as it is for navigation.
https://www.nist.gov/pml/time-and-frequency-division/radio-s...
(303) 499-7111 - WWV (Colorado)
(808) 335-4363 - WWVH (Hawaii)
If you're in the US and have a shortwave receiver you can usually pick up the time broadcasts on one of their frequencies any time of day.
https://www.nist.gov/pml/time-and-frequency-division/radio-s...
"Sputnik Street"?
Stalin, one of the most well-known leaders of the USSR, wasn't even Russia: he was born in what is now Georgia.
> However, what's perhaps more useful is that the Navy continues to offer a telephone time service (202-762-1401) while NIST does not.
NIST also has a phone # service, but regardless, I'm struggling to think of a scenario where dialing a phone # would be more useful and/or accurate than any other method. I haven't called a number to set my clock since the '90s.
https://www.theatlantic.com/technology/archive/2016/06/remem...
https://www.latimes.com/archives/la-xpm-2007-aug-29-fi-lazar...
And the best part? It gets 2,000 calls a day.
[1] https://www.nist.gov/pml/time-and-frequency-division/service...
I would absolutely love to hear from these folks as to what these systems are.
Fortunately, so far, WWV/WWVH/WWVB have survived the budget process despite a pseudo-decision having been made to end the service. We'll see how long that continues.
https://en.wikipedia.org/wiki/WWV_(radio_station)
https://www.nist.gov/pml/time-and-frequency-division/radio-s...
When I was a kid my dad had built a Heathkit multiband radio receiver[1] and we used that station to set our clocks at home.
1. https://commons.wikimedia.org/wiki/File:Vintage_Heathkit_16-...
I think all the online converters I found a couple of years ago failed to get this right.
TAI is also, of course, fundamentally just a divergence from UTC caused by not applying leap seconds. However, formally, UTC is defined as TAI plus or minus the leap second offset in order to minimize divergence from UT1 (which is a smoothed astronomical time base rather than monotonic). GPS time is TAI plus or minus a different offset caused by some of the leap seconds being considered.
There is a basis for this, LORAN did the exact same thing but with an earlier divergence point.
But then again Sprint may just be trash at providing phone service yet again. I may try again from a VOIP provider later.
But on this page https://www.nist.gov/pml/time-and-frequency-division/radio-s... NIST shows a working phone number...
NIST published an update to their About page for time.gov mid-week (https://www.nist.gov/pml/time-and-frequency-division/about-t... ); the only reason I know it was updated today or might've been late last night is because I used the old time.gov to set a watch the day before, and when I opened the tab today, the clock read:
aN:aN:aN
---The nice part is that save for the custom web analytics code from digitalgov.gov as well as jquery, it's not minimized.
setInterval(function() {
location.reload();
}, 600000);Moreover, any clock that updates itself in JS is also limited by the accuracy of the device's own clock. Periodic reloading ensures that the displayed time doesn't drift far from the server's clock. Of course they could do this by AJAX, but location.reload() also works fine if there's no client state worth preserving.
Maintaining an open full duplex connection for a single fetch request every ten minutes sounds like terrible overengineering that in the end is probably much worse performance wise.
Both protocols use TCP as an underlying protocol. So the latency of the timedata from the final request should be pretty much the same (neglectible differences due to larger HTTP header that needs to be sent and parsed on receive). We don't really care about the additional round-trips before, because they don't affect the clockdrift.
However, if you really do care about the clockdrift due to client-server latency there are protocols like NTP that try to calculate that drift and minimize it.
Sadly, IE 11 isn't going away any time soon.
But to answer your specific question, regardless of whether it's needed or not, it's mandatory. https://www.whitehouse.gov/sites/whitehouse.gov/files/omb/me... requirement #2
There’s even an open source project around the public analytics.usa.gov dashboard:
There is nothing special about visitors to .gov websites vs any other major website. You stop supporting old browsers when their installed base gets small enough; this has nothing to do with analytics or those specific sites under surveillance.
Finally, you’re also wrong about how sites use analytics: global stats don’t matter much compared to your actual visitors, whose demographics can vary significantly. Every site I’ve worked on since the mid-90s has found that to be important enough to do basic analytics of the sit under discussion here.
Calling it analytics doesn’t make it not mass surveillance.
It’s not okay when either group does it. I’m surprised to see that “the government should not spy on its citizens” is such a controversial belief.
Interesting to wonder how often are people needing to come up for a design for this type of information? Am I wrong to think not very often? My point is it's cool to see a design for something that isn't "solved" or that not many have ever really worked on.
So the different components of this visualization genuinely solve a few different problems around color-blindness (necessary for 508 compliance is my guess, but I'm not an expert here)
Grab a screenshot (https://i.imgur.com/9ynIz5G.jpg) and drop it in here (https://www.color-blindness.com/coblis-color-blindness-simul...)
The only mode where any two zones next to each other are nearly identical is Red-blind/Protanopia (CMK identical, Y 8% higher in UTC-7 compared to UTC-8†). Monochromacy/Achromatopsia is a close second... and that's where the gradients to the clocks come in - even for those users, there's still a mechanism to distinguish those two zones.
I'd guess some serious usability research went into this.
---
† RGB, though more accurate since we're talking about a screen, would've been a little more complicated to compare in writing since only yellow changed between the two in CMYK
I find that unlikely. If they just swapped the blue color of Alaska with the Mountain time zone there would be no ambiguity between adjacent colors at all for any type of color blindness.
Using 24 hours is "military time" there.
In all seriousness I always thought it was a sort of minimal representation of the American flag. The star isn't oriented the way it is on the Texas flag.
It looked precisely like this, but was a java applet.
Great job to those of you working on this website! The update looks amazing, and I'm sure I will continue using it for years to come!
Tangentially, I find myself using https://time.is/ a lot, check it out if you frequently need to check time in another city or verify your clock is synced.
I only wish it had more date display options: day number and ISO8601 Week Number.
2020-02-07 20:49:08.720955 (+0800) +0.949762 +/- 0.732397 pool.ntp.org 108.59.2.24 s2 no-leap
Why is the clock discipline on macos so bad?ETA: my local linux box by contrast is off by 1ms.
2020-02-07 20:54:23.770052 (+0800) +0.000570 +/- 0.019234 pool.ntp.org 50.205.244.108 s2 no-leapDid the resync and now just off by 0.08sec
The reality might simply be that being off by a second doesn’t matter so much, as long as it’s gradual.
For example, Google chose to “smear” a leap second by prolonging each second by a tiny bit, and everything was fine.
And finally, to pay devils advocate, clients being off by +- a few seconds might actually be a good thing. If everyone was aligned to the millisecond 99.99% of the time, then a lot of timing bugs and inconsistencies won’t be surfaced except on the field.
Over what time period did the slippage occur?
There is a tradeoff between highly accurate timekeeping vs. the cost of providing the service, and since the vast majority of users will never notice an inaccuracy of even a few seconds, OS vendors default in the direction of lower cost to maintain their NTP infrastructure.
There can be a bit of a tragedy of the commons situation since equipment which relies on the volunteer-operated pool.ntp.org is also somewhat more likely to have their NTP clients configured in an aggressive way that drives up load on that public resource - since the people configuring the client aren't responsible for operating the infrastructure.
NTP is demanding of the CPU and OS, but what it demands isn't a lot of seconds (or a lot of memory), it is being run at precisely the right time. The OS can't run the NTP server when there's nothing else to do, the NTP server needs the right nanoseconds in order to work well.
> When a user connects to www.time.gov on a computer or mobile device, the Javascript in the client's browser checks the local clock on the device and then requests the time from a NIST server, which has been synchronized with UTC(NIST). When the packets containing the NIST time stamp arrive at the client's browser, the device clock is checked again and compared to the first check of the local clock. The result is a measurement the round-trip delay of requesting/receiving the time stamp.
https://www.nist.gov/pml/time-and-frequency-division/about-t...
Anyone know how true this is? Particularly for mobile/asymmetric bandwidth connections - what might the errors bars be?
and grep for realTimeDif
We had an appointment to tour Canyon de Chelly with a Navajo guide on Sunday AM. We checked into a motel just barely on the reservation on Saturday night before the DST change.
When we entered Arizona, it was, I think, on different time from California. But that night, California was going to move onto the same time as Arizona. The Navajo reservation, too, would be changing times, to match Central, I think. My new-to-me car, with a "DST" box checked on the Nav system, and with the theoretical capability to change timezones based on location and DST rules, would do god-knows-what. We of course had to assume our appointment would be on Navajo time, but had no way of knowing whether our cell phones would switch or not, because there was no way of knowing whether there was GPS-based timezone logic, how precise it was, whether timekeeping was only based on the tower you're connected to, and whether the towers in question were on the reservation or outside of it.
Needless to say, we actually set the bedside alarm clock and used it. (of course, these things often go awry as you find out you set it on radio instead of buzzer, and the radio is not tuned to a legitimate station, or the volume is too low, or whatever).
Oh and I later found out the checkbox on my car just literally meant "are you on DST or not". Yeah, even though it has the capability to pull time from the satellites and cell towers, and even though it knows where I am, and in fact WOULD set the clock from GPS, you had to manually set the timezone and current setting of DST as you moved on and off DST.
It was an old school alarm clock, so you could expect it to at least be consistent, which is all that mattered. I don't remember if we set it ahead, or left it where it was, but we knew where it would be tour time. Whereas we could not trust our phones to not do something funky. Or to do something funky and undesired.
I went on a road trip last summer, and as a foreigner was thoroughly confused when driving across Alabama to Georgia, and the time changed. Then I got even more confused as I was driving in Tennessee and Kentucky, and the time just kept changing.
I think I understand time zones in theory, but in practice I always mess up and get it wrong, and confusion and hilarity often ensues. :o)
That was an absolute nightmare. Nonsensical timezone pockets, not necessarily along postal lines, arbitrarily changing at what point they switch to daylight saving time... and yes, areas around reservations were the most common offenders. Oh and you can't just cleanly ingest the data - converting it to UTC on import, because you only find out that they switched after you start seeing time travelling mail pieces in your staging datastore. I don't think I'd ever been more tortured by a problem, only a couple of years before that I had been fighting house to house in Fallujah - and that USPS system integration had me wonder if I'd made a mistake in not renewing my contract.
https://i.imgur.com/dFrM24l.jpg
Edit: holy cow that screenshot became dated very quickly. Map was updated to fix Florida and Texas; new screenshot as of 9:35 UTC-5:
Both server and client must have synced time.
I validated my phone and desktop’s time using time.gov when the admins claimed that their server was right and my clients were off.
I thought it was kind of funny they would claim their time was accurate without checking it. Also funny that their server and local ntp would be off.
But time.gov saved the day by providing an always available, easy to use standard.
However each clock is updated in a seperate call to .innerHTML. This means the DOM is updated seperately for each clock instead of just once for all the clocks.
So depending on how eager your browser is about doing layouts, I could imagine different clocks updating on different frames to be a possibility.
function updateAllClocks() { A.innerHTML = ...; B.innerHTML = ...; }
Then A and B would update on the screen on the same frame and the order doesn’t matter (If A is not parent of B or vice versa of course)
This is not true if they do a lot of setTimeouts(), but is true for all other “normal” synchronous code.
I think the JS standard doesn't have any notion or layout of rendering. Which part of the standard are you referring to?
This feels like the one website ever that needs to be served over HTTP ;)
Second, you should never leave the certificate replacement till the last moment. Even the 3-months certs should be rotated a month before expiry for safety. If your clock is a month off, that's not something the website can help with.
Before that there was NET TIME which ran over SMB and probably still works because backwards compatibility is what built the MSFT empire.
The Navajo Nation Reservation is on a different time zone than the state it is mostly inside.
But the Hopi Reservation is entirely contained within the Navajo, and is on a different time zone.
When we drove through that region my phone just freaked out, switching times back and forth arbitrarily.
And the hotel had three clocks in the lobby for clarification.
Edit: fixed now. Quick work for a Friday night!
https://en.wikipedia.org/wiki/Time_in_the_United_States
In fact, considering it's from NIST, there's a stunning lack of precision in the map. The controversial Florida timezone split (2000 elections) isn't reflected here either, and the map itself is largely rounded without considering individual locales.
edit: fixed! Nice!
Hello NIST employee watching this thread. Nice quick turnaround!
Really great refresh from the old version of the site.
Viewing using latest version of mobile safari, JavaScript enabled.
Not sure if they aren’t detecting browser, aren’t detecting JavaScript, or are just letting everyone know this even if they have the right browser.
I suppose I should be lucky that it’s not twice the size and in French as well.
It also showed a world map and where the sun was currently shining.
I only know it used to be one of the first results on googling "current time".
I looked into it and it turns out that on Firefox Developer Edition (v73.0b12 64-bit) returns an incorrect value for Date.getTimezoneOffset() (0 instead of the expected -60). I'm not sure if it's a bug or an anti-tracking/privacy "feature".
https://time.gov/scripts/zzz__0fd3fed7f945928bf590af174cd541...
It's basically:
timeDotGov.data.realTimeDif =
timeDotGov.data.serverTime -
timeDotGov.data.responseTime;
with added corrections. Grep for realTimeDif
to see all of it.My favorite part is "THE OFFICIAL U.S. TIME".
No messing around.
Your phone's settings should have a way to sync with the cellular network (for example, if you set a manual time and then choose set time automatically).
Cell towers (edit: in the USA) are usually within a second of time.gov, so your offset should hopefully be under a second after you sync with the cellular network.
It's somewhat common for CDMA cellular equipment to be used as a stratum-1 time source in lieu of GPS, since CDMA is easier to receive inside buildings. But GSM is unsuitable for this purpose, and since the long-term prognosis for CDMA seems perhaps less than optimistic, some operators may be forced to run a GPA antenna to the roof.
I can accept that maybe they only sync the time once per day, but what the heck could take so long to have the newly synced time percolate up into the browser? I have a 4 core cpu, 32 gig of ram and a couple-year old ssd, with nothing of consequence running at the time.
Microsoft operates a generously sized pool of NTP servers to reduce this problem, but since the public Windows time service is not intended to maintain particularly high accuracy it is probably still somewhat limited by server resources. You will see similar issues with the 'open' pool.ntp.org service although lower-stratum pool.ntp.org servers usually seem to have comparatively low load.
Additionally, Windows uses a slight 'variant' of NTP which is intentionally lower precision in public-internet scenarios, likely to reduce the load on the Microsoft NTP service and avoid the issues that some public NTP services have had with e.g. routers using conventional Linux NTP clients absolutely hammering them. The Microsoft docs on this don't give a whole lot detail behind the reasoning and technical details though. Windows NTP achieves much higher accuracy when configured to use a local NTP server.
All of this said, 2.5 seconds is still surprising to me. You might be experiencing rather high local clock drift, although that seems less common since OS timekeeping now relies on the various CPU time counters (which are appreciably more accurate than the BIOS real-time clock), although all bets are off in a VM.
The reason it took some time for the difference to apply to the browser is quite simply the method which the time service actually uses to change the system time. Windows behavior is more or less identical to the Linux nptd/chrony behavior in this case, although the configuration parameters are a little different. When the difference between current system time and NTP time is 'reasonably small', the system synchronizes by 'slewing' the system time by redefining a second to be somewhat shorter or longer for a while. This means that it takes a bit for the clocks to converge, but has the upside of not violating the assumptions that software tends to make about the system clock (e.g. that every second will occur exactly once). On Windows and generally on Linux depending on configuration, very large offsets will result in a 'step' where the system time is just abruptly changed, but this can cause some software to misbehave so is avoided (e.g. cron can act up when a whole minute just never occurs due to a step skipping over it).
SNTP is notoriously less accurate but is usually "good enough".
Well that’s not something you see every day.
Thank you!
Because of all this, you can travel less than 100 miles in a straight line and have to change your clock six times...
Not really, I don't do this anymore. But at a past job I dealt with malware infected computers. One of the first things I'd do out of habit was make sure it had the correct time. We could connect them to a network but it was heavily firewalled which included blocking NTP. Not wanting to have to set time manually all the time I wrote a Powershell script that parsed www.time.gov. I'm sure that script won't work now.
The webpage currently says my computer is over 1 second off from the truth. In the old site, it wouldn't tell me anything about my computer. It would tell me a confidence interval between the website's time and the truth, and it was usually about .1 seconds IIRC.