top | item 22272966

Time.gov was upgraded today

692 points| bryant | 6 years ago |time.gov

210 comments

order
[+] jcrawfordor|6 years ago|reply
There are two independent timekeeping authorities in the US, the NIST and the Navy, which maintain the official civil and military time respectively. By policy the civil and military time are synchronized, and the precise offset between civil and military time is monitored by the NIST as a form of quality assurance. The offset between the two is generally less than the error in the comparison method.

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.

[+] walrus01|6 years ago|reply
One interesting thing about Schriever AFB and its critical role in the GPS system... It's one of the few US military facilities in the 48 states that has a true double perimeter fence system around it. Take a look at it from google earth in satellite/aerial view. The security around it is very nearly as high as the Pantex plant in Texas (nuclear bomb assembly/disassembly facility).
[+] fyrabanks|6 years ago|reply
Thank you very much; this is a very detailed post that covers several things I was wholly unaware of. One minor gripe:

> 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.

[+] dfee|6 years ago|reply
I tried calling the number but it just kept ringing.
[+] guscost|6 years ago|reply
If the history of timekeeping for navigation sounds interesting, check out the book (and movie) “Longitude” by Dava Sobel. It’s an incredible and largely-forgotten story.
[+] dhimes|6 years ago|reply
So if we're using the Nautical Almanac for navigation purposes,does it matter if we use NIST or Navy? Or is the synchronization very close? Also, where can I learn more? In the sailing community these questions come up, believe it or not.
[+] Something1234|6 years ago|reply
The phone number doesn't work. Just tried calling it on my cell phone. I'm just getting a constant ringing with nothing picking up I'm very disappointed.
[+] euler_angles|6 years ago|reply
I am curious, when did the decision to make GPS not follow leap seconds occur? had you asked me before I read your comment, I would have said that it doesn't honor leap seconds and never has.
[+] anonymousiam|6 years ago|reply
NIST has offered telephone time for as long as I can remember (40+ years). You can reach it at: 303-499-7111
[+] Amorymeltzer|6 years ago|reply
I can't comment on accessibility or responsiveness or what have you, but this is a wonderful display. Strong, clear delineations without being too bright or garish, and densely packs a bunch of information together without losing clarity or concision. Love it.
[+] eganist|6 years ago|reply
It's brilliant. And the front-end code, though not at all complicated, is clean and easy to understand. I can't speak for code quality, though.

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.

[+] chrisseaton|6 years ago|reply
How come it uses AM and PM rather than 24-hours?
[+] neurobro|6 years ago|reply
It looks like it was designed to fit perfectly above the fold on the screen, but then some manager (to put it mildly) came along and made them insert a useless grey bar at the top, pushing everything else down. Nothing a little "Block element..." can't fix, though.
[+] danso|6 years ago|reply
Here's what the site looked like previously, a classic design: https://images.mix.com/production/b0/9f/b09f278d6474c4ac543b...
[+] RandomBacon|6 years ago|reply
I remember using time.gov about 17 years ago. It was "worse" back then: the home page had two buttons: one that displayed a static time in HTML, the other that displayed a Flash or Java element where the seconds ticked. (Worse compared to today, back then it was good for the time and I appreciated the resource.)

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!

[+] xwowsersx|6 years ago|reply
Just before this upgrade today, it looked like that?
[+] ebg13|6 years ago|reply
With a giant Texas flag down the side. I wonder why Texas.
[+] sciurus|6 years ago|reply
That's an amazing improvement, but I'm already nostalgic for the old design. Next you're going to tell me they've upgraded the Space Jam website.

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.

[+] 333c|6 years ago|reply
I used to use time.is, but recently it's gotten more and more ads. Now, this new version of time.gov has the feature that compares device time to correct time, so I think I'm going to switch over.
[+] whitehouse3|6 years ago|reply
time.is/ is a damn near perfect website. Doing one thing really well.

I only wish it had more date display options: day number and ISO8601 Week Number.

[+] mycall|6 years ago|reply
Do they have the audio version that is broadcast on AM?
[+] thedance|6 years ago|reply
It says my mac is off by nearly a full second, and sntp from the command line agrees.

  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-leap
[+] vector_spaces|6 years ago|reply
Maybe a silly question, but how can they reliably detect and display the error between my system time and the actual time? I would think there'd be some latency introduced while the page is being loaded/drawn, and by the JavaScript code that's displaying/changing the time, among others.
[+] twright|6 years ago|reply
TIL the Navajo nation (in North East Arizona) recognizes daylight savings while the enclaved Hopi nation does not along with the rest of Arizona.
[+] prepend|6 years ago|reply
While I used to use this years ago managing servers I recently pulled up the old version again helping some admins in my org debug why the 2factor Authenticator apps weren’t working for signon.

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.

[+] russellbeattie|6 years ago|reply
I can't believe all the seconds on that page aren't synchronized. Or at least on my tablet they aren't! They're flipping at slightly different moments. Should have had one timer event firing to change every element at the same tick.
[+] missblit|6 years ago|reply
They are all updated in the same JavaScript function.

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.

[+] reilly3000|6 years ago|reply
I thought that was happening at first on my fast desktop, but it seemed to be to be an optical illusion the more I looked at it. I’d probably have to set some breakpoints or something to verify, but it’s Friday night...
[+] afterburner|6 years ago|reply
You sure you're not looking at the "Your Device's Clock" part of the page? All mine (except that nice little box) are in sync.
[+] jrockway|6 years ago|reply
How does this work if your time is really far off? The actual time is served over HTTPS (and the server doesn't even listen on port 80), so if your system time is so far off that it's beyond the validity range of the certificate, your browser won't let the site load. Then you won't be able to determine the time, and fix your computer.

This feels like the one website ever that needs to be served over HTTP ;)

[+] whiddershins|6 years ago|reply
Only sorta related but that map doesn’t show this interesting detail which I experienced first hand:

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.

[+] saltedonion|6 years ago|reply
Mobile safari says can’t connect to the server. Is it down or does it not have a web interface ?
[+] dtparr|6 years ago|reply
Odd. It appears to show all of TX in central time. I thought the Western tip (El Paso, basically) was Mountain.

Edit: fixed now. Quick work for a Friday night!

[+] Mountain_Skies|6 years ago|reply
It's corrected now.

Hello NIST employee watching this thread. Nice quick turnaround!

[+] eganist|6 years ago|reply
Unless something's changed, you appear to be correct (edit: as of just before 9pm eastern - https://i.imgur.com/dFrM24l.jpg)

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!

[+] afterburner|6 years ago|reply
I never realized the time zones cut through so many states.
[+] ourmandave|6 years ago|reply
Didn't this used to be a java plug-in?

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".

[+] mwexler|6 years ago|reply
For a while, Time.gov was one of the poster children for Lazlo (https://en.wikipedia.org/wiki/OpenLaszlo), one of the more interesting cross platform toolsets back in the day (akin to Haxe nowadays). You can see the LZW (lzx) files in older versions of the site in Archive.org Wayback (2007 or so onward). The team translated their purely Java portion into Lazlo then cross compiled into swf for Flash. So, it went from CGI (perl) to Java to Flash to HTML (still via Laszlo) to a few revisions here and there to work around browser changes to finally this latest revamp. See some background in https://tsapps.nist.gov/publication/get_pdf.cfm?pub_id=50644 from 2007.
[+] po1nter|6 years ago|reply
My device's clock is off by 1 hour.

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".

[+] wizzwizz4|6 years ago|reply
It's probably because you have Firefox Developer Edition. Do private windows always open at the same, 4:3 window size? If so, that sounds like the resistFingerprinting about:config entry.