Categories
Uncategorized

Your questions on the upcoming leap second

Just back in the office from a trip, I found several questions in my email box in regard to the upcoming leap second. I thought that I’d take a moment or three to answer several of the questions there, some not covered in past posts.

The first question on everyone’s mind could be summarized best as…

“Is there anything special I need to do to my computer or tablet?” (related questions included: Is there a hotfix for this leap second? When will I see the update applied? Will most average computer users notice the leap second? Is there anything they should do to prepare?)

Generally, as a Windows computer user, there’s nothing in particular to do – no special updates or hotfixes to apply. As I covered in this earlier post (and also summarized here), current supported versions of the Windows OS are plumbed to deal with such additional leap second. It’s recommended that you set your PC to sync with an Internet time server via the Control Panel in Windows 7 (as noted here), or in the PC Settings for “Time and Language” on Windows 8.1 (as shown here). With that done, you should be good to go. (If you’re device is part of a domain – such as PC provided by your company for business – then your clock sync is likely managed by your IT administrator.)

As called out on the Windows site with instructions on How to Set the Clock, you can sync your device clock with an Internet time server of your choice to help ensure your device’s clock is accurate. Typically time is updated once a week when your device is connected to the Internet, or the clock sync may be managed by your administrator (with domain joined devices). As a user, you probably won’t notice the extra second nor see any impact to your Windows devices.

Next was on the impact of the leap second on devices…

“Will this leap second cause any problems on my system?”

Generally, no, as my associate Matt Johnson noted. Usually leap seconds don’t cause a problem unless you are timing things less than a second in duration, or if you are re-sorting events that occur in high frequency. As Matt called out, most software applications and services have to cope with minute time adjustments to the system clock for a variety of other reasons anyway, and leap seconds are no different. I say “generally” as folks who need highly accurate time sources should refer to the detailed post on high accuracy W32time requirements on how to configure the Windows Time service for high accuracy environments and Kerberos standards. (NIST’s Physical Measurement Laboratory provides a list of several high accuracy manufacturers of time and frequency hardware receivers and software providers.)

Next was on the hype around this new leap second contributing to a Y2K event…

“I heard that the last time we had a leap second, the Internet melted down.” (Related: [Some have] compared this to the Y2K problem. Is that an accurate comparison? Will there be a massive disruption of computers and services? )

First, that’s not really a question but a statement I have heard a number of times, and not a true statement at that, as I noted in this appropriately titled post. Some reports (like this one in USA Today) were quick to associate the addition of a leap second in 2012 to the bug that “took down much of the Internet.” Generally, consumers have nothing to worry about when it comes to this non Y2K event: the timing of the 2012 leap second happened to unfortunately coincide with a power outage that impacted their service provider (as noted by the BBC). Yes, there were some reported impacts as noted by Robert McMillan at Wired in his post “The Leap Second Is About to Rattle the Internet. But There’s a Plot to Kill It”. But when the last leap second adjustment was made (back on June 30, 2012), I don’t believe we at Microsoft had any reports of leap second related issues for any of our products including Windows and Azure (or any customer applications running on Azure).

Then there’s a question about services…

“What about online services?”

Similar to connected devices that rely on NTP, various cloud systems also obtain NTP sync in similar ways, keeping in mind that cloud services aren’t just fluffy concentrations of water vapour but (in our case) more than 100 global datacenters supported by a multi-terabit global network. How leap seconds are applied to and appears on a local machine clock may be different from an online service but share many of the same traits as documented and understood in Windows, upon which Microsoft Azure has its origins. In speaking with the Azure team, I learned the service has been designed to be resilient to clock discrepancies across our numerous infrastructure components and regions. Azure has proven application compatibility for handling leap seconds given it uses the Windows time-synchronization protocol, which is used by all Windows systems.

And then this question about when to adjust your watch…

“Should I set my watch at midnight?” (related: Is this similar to New Year’s or the adjustment for daylight saving time?)

Unless your watch is accurate to the second, or you happen to live in an area like Casablanca, Morocco, no. Contrary to some media reports, the change does not happen at midnight local time in each time zone, unless that time zone currently has a zero offset from Coordinated Universal Time or UTC (en Francais, temps universel coordonné) meaning the country uses the UTC+0 offset (like Morocco). For me and my compatriots in Redmond (which is UTC -7:00), the leap second will be added on June 30, 2015 at what essentially will be 4:59:60PM local time. And it doesn’t hit everywhere on June 30: some time zones will see the leap second added on July 1: folks in London will see a leap second added on July 1, 2015 at 12:59:60AM, and Paris (to which my watch is still set) at just before 2:00AM local time.

Further, unless you’re managing a satellite or a space mission, leave the update to your system: there’s no need to ping the time server manually. If everyone in the world called the Internet time servers at the same time, there could be a strain on the server. 

[063015: I saw another example of the above error on NBC’s “Today Show“, whereas their competitor over on ABC got it right.]

I also received questions on the various approaches of how system providers plan to accommodate the a leap second. Aside from how Microsoft syncs the system clock to the accurate time, I’ll leave the explanations of the benefits and potential drawbacks of the approach to those companies.

 

Also available at https://aka.ms/leapsecqna

Categories
Uncategorized

Another look at the impact of the coming 2015 leap second on Microsoft products (not much)

Drawing of a man holding back the hands of a clock with the caption "You can't stop time"A month from now, we should be looking back at the press that decried the coming Leap Second (caps my own) as a veritable Y2K and wondering “what was all that about?” As I’ve shared previously (see “What’s all this about the Leap Second”) I’ve learned quite a bit about how Microsoft products and services address the addition of a new leap second. Most often, issues of time and date are addressed by the groups involved in managing the Windows OS, plus in this instance by the team managing the Windows Time service. Many of our products and services rely on the underlying OS for time and date, much like the support for daylight saving time and time zone support. There’s a great TechNet post that covers How the Windows Time Service Works.

What you likely need to know: On the Windows Client, current supported versions of Windows are plumbed to deal with such leap second changes via an NTP ping in the Windows Time service (a.k.a. W32Time), as I summarized here. As you may know, W32Time handles regular clock sync, and as root time sources are updated, changes propagate through NTP and adjust network synched clocks. I outlined much about what you may want to know in my post on the story around Leap Seconds and Windows. Essentially, set your PC to sync with an Internet time server via the Control Panel in Windows 7 (as noted here), or in the PC Settings for “Time and Language” in the Control Panel on Windows 8.1 (as shown here), and you’re good to go. (If you’re device is part of a domain – such as PC provided by your company for business – then your clock sync is likely managed by your IT administrator, so again, you should be good to go.)

Background on how a leap second is added: When a leap second is to be added, a notification is broadcast on the day of the event (sometimes in the hour prior) via an NTP flag from the NTP server to all NTP clients. Time services (e.g., time.windows.com) sync with authoritative, atomic clock time servers such as those maintained by the National Institute of Standards and Technology (a.k.a. NIST, at bldrdoc.gov). These facilitate regular clock sync, and as the root time sources are updated, changes propagate through NTP and adjust network synched clocks as well. Technically, IIRC, the leap second is applied by NIST on NTP as a second iteration (a repeat, actually, in binary) of the final second of the day, and would look something like this: “23:59:58… 23:59:59… 23:59:59… 00:00:00UTC”. (BTW, some systems interpret this last second as 23:59:60.) Think an abbreviated, one second version of the issue Emily Blunt faced in Edge of Tomorrow, but without all the bloodthirsty aliens and general mayhem.

How a leap second is reflected in Windows: Contrary to one post I recently read, Microsoft doesn’t implement a leap second time zone by time zone – in other words, in a rolling fashion, like the way we watch new year celebrations count down around the world. Essentially, the leap second occurs at the same time everywhere. Just when your individual device syncs with NTP will likely be different from others. Windows devices that are joined to a domain will attempt to sync with the domain hierarchy. Consumer devices that are not domain joined, sync time less frequently or have intermittent network connections sync the clock most commonly to the Microsoft NTP server, time.windows.com. As these systems do not sync the clock frequently, we’ve stated that “it is impossible to guarantee time accuracy on computers that have intermittent or no network connections.”

Devices that are synched with time.windows.com will eventually sync to the current, accurate time reflecting the leap second. As time.windows.com syncs with NIST time servers, Windows devices are generally accurate and in sync subsequent to the addition of the leap second. Many devices will sync within the first few seconds of 00:00:00 UTC (which some may refer to as “midnight UTC”) on June 30, 2015 / July 1, 2015 as they ping the service. But of course, not all systems sync at or close to 00:00:00 UTC. Microsoft has outlined that W32Time service is not a full-featured NTP solution that meets time-sensitive application needs (see Microsoft KB 939322, Support boundary to configure the Windows Time service for high-accuracy environments). Companies that require critical timing systems usually implement a specific reference clocks that provide highly accurate hardware clock, which when used with Windows, use their own incredibly accurate clock drivers. Whereas Windows is supported to be accurate within something like 3 seconds, these clocks are accurate to within <1s. (If you want to get all nerdy, my friend, Matt, reminded me of my desire for a Meinberg clock, and a great summer project you can DIY with your kids.)

How the leap second is reflected in services:  Various cloud systems obtain NTP sync in much the same way. How leap seconds are applied to and appears on a local machine clock may be different, but this is well documented and understood in Windows, upon which Azure has its origins. (More on that in a second – see also the info in Microsoft KB 909614, How the Windows Time service treats a leap second, and KB 939322, Configuring the Windows Time service for high-accuracy environments.)

In speaking with the Azure team, I learned the service has been designed to be resilient to clock discrepancies across our numerous infrastructure components and regions. Azure has proven application compatibility for handling leap seconds given it uses the Windows time-synchronization protocol, which is used by all Windows systems including the Windows client OS, Windows Server, Windows Phone, and Hyper-V. When the last leap second adjustment was made (back on June 30, 2012) we had no reports of leap second issues for any of our products across Windows, Azure, or the customer applications running on Azure. Similarly, I understand that other Microsoft services, including as Office 365, Dynamics CRM Online, Intune and Azure RemoteApp services, aren’t affected by a  leap second change. I’ll add additional information here as I come across it.

Generally, Microsoft products (e.g., Exchange, Office) and most/all third party apps rely upon W32Time to provide an authoritative view of time, using UTC rather than local time (the time you see displayed by your Clock app and in the Date & Time display). As long as the OS is able to manage the leap second change, dependent applications should generally be fine: there could be implications for apps or services that do not follow standard clock implementations. If an app or service uses another time sync method or has other time dependencies then there could be an impact (e.g., presenting an app with a time reference of 23:59:60 when it doesn’t expect to see seconds greater than :59). More info on some of these concepts with appropriate links here.

Article also available at http://bit.ly/leapsecinfo

[edit: added information in ¶2 on domain-joined devices; added detail in ¶3 on the binary nature of the leap second via NIST]

Categories
Uncategorized

Implications of Proposed Changes to Daylight Saving Time in the United States

This past week, I’ve contacted and spoken with several legislators on the plethora of proposed changes to use of daylight saving time around the States. I even had a call from my friend, Rich Kaplan, the new CEO over at the Microsoft Alumni Network, reminiscing over a few of these recent moves. The efforts fall under two main proposals: to move their state to perpetual daylight saving time, as is the case in Florida, Mississippi (died in committee) and New Mexico*; or, to move to permanent standard time, as proposed in Alaska, Oregon, South Dakota, Texas, Utah** and Washington. (I recently heard that the bill to adopt daylight saving time in Arizona has been held up by the House leadership, effectively dead in committee.) I’m not sure what will happen in Florida and New Mexico, given that the United Sates Code (15 U.S.C. §6(IX)(260-7)) stipulates that states shall either implement the semiannual daylight saving time changes or remain on standard time throughout the year.

Asked what I worry about this now, I recalled Winston Churchill’s quote:

“Let our advance worrying become advance thinking and planning.”

I appreciate that the legislators in several states have thoughtfully called for such changes to take effect in 2017 or later (2021, in Oregon). But a few, like Texas and Washington, would have the changes as early as fall of 2015. Without adequate time to react, such changes can be challenging for individuals to manage and for companies to support. Not a very united effort in the States as a whole.

That’s why Microsoft has recommended (via the tab “Microsoft Policy in Response to DST/TZ Requests” in the left nav of the page) that governments take at least one year from the time the proposals are enacted into law for the change to occur. As an example, I look to the timeline provided in the Energy Policy Act of 2005, outlining sweeping changes to daylight saving time in the United States, that allowed for nearly a year and a half before the change was implemented.

But just as important as the time needed to implement these changes, also consider the technical implications of moving to permanent daylight saving time rather than moving solely to standard time.

imageAs noted in my last post, a few states have proposed to move to year-round standard time and drop daylight saving altogether, a fairly straight forward approach. Given that many devices (PCs, phones, tablets and services) allow you to select whether or not products use a daylight saving time offset, shifting the device between daylight saving and standard time twice a year is fairly simple, and turning off the automated change is quite simple. In Windows, you may check the option for the device to “Automatically adjust clock for Daylight Saving Time” if your time zone observes daylight saving time and you want your computer’s clock to be adjusted automatically when daylight saving time changes. (In the States, that’s on March 8, 2015.)

But moving to permanent daylight saving time may not be easily implemented on devices that are no longer supported and don’t receive updated rules: this includes computers, mobile phones, embedded devices, connected systems and services. For instance, older operating systems that are out of support (such as the venerable Windows XP) no longer receive updates which include the updated set of worldwide time zones and daylight saving offsets.

More information than you’ll care to remember is available in KB 914387, How to configure daylight saving time for Microsoft Windows operating systems.

 

* – an added twist: New Mexico, today in the Mountain time zone, would move in the current proposed legislation to the central time zone and be known as “mountain daylight savings time.”

** – Feb 9, 2015: Latest reports indicate Senate Resolution 1 died in committee.

 

Also available via http://bit.ly/DSTtech

Categories
Uncategorized

The story around Leap Seconds and Windows: It’s likely not Y2K

Today I woke to a number of hair-on-fire press articles decrying the coming and dreaded Leap Second… with the mainstream USA Today calling out…

“But last time it happened, in 2012, it took down much of the Internet. Reddit, Foursquare, Yelp and LinkedIn all reported problems, and so did the Linux operating system and programs using Java.”

Not quite correct: IIRC, although some may’ve succumbed to bugs noted in Wired, several popular Internet services (including some of those mentioned) went off line due to a serendipitous and unfortunately timed power outage that impacted their service provider as chronicled by the BBC.

So, why isn’t Windows mentioned?

Glad you asked.

As I noted a couple of years ago, you’ll find more documenting the impact of a leap second in heartwarming Knowledge Base article “How the Windows Time service treats a leap second” and (excerpted) for everyman by the well-read and  Michael Kaplan. Essentially, after the leap second occurs, the NTP client that is running Windows Time service is one second faster than the actual time. This time difference is resolved at the next time synchronization.

“In short, W32Time does not account for a leap second being dependent on the NTP server. Most applications and services may be unaffected, but sysadmins and IT professionals should know that the leap second is not addressed until the next time sync following the official addition/ subtraction of the leap second.

KB 816042, How to configure an authoritative time server in Windows Server 2003, and KB 884776, How to configure the Windows Time service against a large time offset.

As The Telegraph noted, “Many computing systems use the Network Time Protocol, or NTP, to keep themselves in sync with the world’s atomic clocks.” As called out on the Windows site with instructions on How to Set the Clock, you can sync your device clock with an Internet time server of your choice to help ensure your device’s clock is accurate. Typically time is updated once a week (when connected to the Internet – who isn’t?), or the clock sync may be managed by your administrator (with domain joined devices). As a user, you probably won’t notice the extra second nor see any impact to your Windows devices.

In addition to the historical blog record in the Windows Time Service blog, more articles/ information in which you may be interested:

Generally, consumers have nothing to worry about when it comes to this non Y2K event. IIRC, the concept of a leap second is actually in question, and an ITU working group has debated whether or not adding/subtracting leap seconds should be discontinued (as noted here). We’ll see what 2015 brings. Or January, 2038 for that matter.

BTW, a few additional notes today from my associate and venerable time lord Matt Johnson

“It may be worth noting a couple of things from a developer’s perspective:

  • Most applications do not handle leap seconds, as their time structures only allow seconds numbered to 59 – not to 60.
  • Most applications do not care about this, as they will never receive a leap second from the system clock – even when one occurs.
  • Most applications have to cope with minute time adjustments to the system clock for a variety of other reasons anyway – so leap seconds are no different.  Consider that clock drift does occur, and is often corrected by NTP sync – so it’s not abnormal for an app to receive timestamps out of sequence.
  • Depending on implementation, sometimes a system just won’t observe the leap second at all, but that just means its clock will be off by one second until the next NTP sync.
  • Even when the leap second is observed perfectly, it only affects code that needs to be precise to sub-second accuracy.  Consider how the clock will tick over an observed leap second when you observer it by tenths of a second: 23:59:59.8, 23:59:59.9, 00:00:00.0, 00:00:00.1

“So, it usually doesn’t cause a problem unless you are timing things less than a second in duration, or if you are re-sorting events that occur in high frequency.”

[Note: Part two of the story around Leap Seconds and Windows: #NotY2K]

Also available at https://t.co/8ZVoch44QO

Categories
Uncategorized

Available now: December 2014 cumulative time zone update for Windows operating systems

Is it December already? That means that holiday treat we know at the December cumulative time zone update for Windows operating systems is out, available as kb 3013410. As noted, this update replaces the previous August 2014 CU 2981580 and includes all the time zone and daylight saving time changes released as hotfixes since then, including the monumental changes we saw in Russia in October. (ICYMI, Se my post from September.)

The following changes were made since the previous Windows cumulative time zone update:

  • Russia time zones: Russia announced that it would change its existing time zones on October 26, 2014. This change included seven updated time zones, three new time zones, and two existing time zones that merged into one.       (http://support.microsoft.com/kb/2998527)     
  • Fiji Standard Time: Fiji announced that the country’s new daylight saving time (DST) schedule would start on November 2, 2014 and end on January 18, 2015. The previous DST start date in Windows for the Fiji time zone was October 26.(http://support.microsoft.com/kb/3011843)     
  • Cape Verde Standard Time: We have changed the name of the “Cape Verde Standard Time” time zone to “Cabo Verde Standard Time.” The display name for this time zone is now “(GMT-01:00) Cabo Verde Islands.”

So what should you do to make sure that your computers are ready for the change?

Most applications and services reference the underlying Windows operating system for their date and time related rules, with some exceptions. We outline the various software updates to select Microsoft products (including various releases of the Microsoft Windows operating systems, Microsoft Office and other applications) on the Microsoft Daylight Saving Time Help and Support Center. There, we have information and links to updates for various products in mainstream and extended support affected by this change, as well as other various changes to DST offsets and time zones around the world.

If you use Microsoft Update on your PC at home, chances are you’re already covered. The latest update from October may already be installed on your PC if you have turned on Automatic Update in Windows. This ensures you’ll get the latest security and other important updates from Microsoft automatically. If you’re not sure if the update has been applied, visit the Microsoft Update site for more information.

If someone manages your network at work, it’s likely the needed updates are schedule to be deployed to your computers and devices, if they haven’t been installed already.

For IT professionals managing PCs, servers and Microsoft software installations, please visit http://www.microsoft.com/time for more details. Also, visit the support websites of any other software companies to see if you need to apply any updates. It’s not just Microsoft software that may require updates. Additionally, for the latest change in Russia, we provided specific details and guidance at http://support.microsoft.com/gp/cp_dst/ru.

While Microsoft’s Services infrastructure will be updated to reflect DST changes, it’s important that your computers — both clients and servers that interact with these services — also have the latest Windows cumulative updates for DST and time zone changes applied in order to ensure data integrity.

As always, thanks to the good folks in Windows and those across the company working to help manage time… particularly the number of daylight saving time and time zone changes that come in from various corners of the world. You can find this and much more documented over at http://www.microsoft.com/time and over on the Windows blog at http://blogs.technet.com/dst2007.