Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Handle leap seconds by choosing one time policy, applying it consistently to every time source a client may compare, and separating elapsed-time logic from civil-time timestamps. Use a platform whose UTC leap behavior you understand, or use one documented leap-smear scheme. Never mix smeared and unsmeared sources during an event. Measure durations and timeouts with monotonic clocks; reserve wall clocks for timestamps that must map to civil time.

UTC is tied to atomic time but is occasionally adjusted by a leap second. That adjustment can make a wall clock pause, repeat a displayed second, or progress at a slightly altered rate, depending on the operating system, daemon, protocol, and provider. The practical risk is not the extra second itself: it is inconsistent assumptions between hosts, databases, queues, certificates, schedulers, and observability systems.

What a leap second changes in a distributed system

UTC is maintained against atomic time and can be adjusted when the difference between Earth-rotation time and atomic time requires it. A positive leap second inserts an extra second at the end of a UTC day; a negative leap second would remove one. NIST explains the relationship between UTC, atomic time, and leap seconds in its technical overview at NIST’s leap-second reference. RFC 8633 describes the operational consequences for network time.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Many programs implicitly model a civil day as 86,400 ordinary seconds and assume that a timestamp always increases by one second at a time. Those assumptions are unsafe at a leap event. Depending on the time scale and implementation, a wall clock can repeat a timestamp, hold one value briefly, step forward, or be gently adjusted over an interval. File names, cache keys, database ordering, cron-like schedules, log correlation, token expiry, and alert windows can all be affected when they treat wall time as an elapsed-time meter.

#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter | 4Pack Type C Female to A Male Cable Converter for Apple Duo 17 16 15 14 Plus,iWatch Watch 12 11 10,iPad 9 8 Air,Airpods 5 4
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

A leap second does not automatically break every application. It becomes a distributed-systems problem when different hosts obtain time from sources with different semantics, or when code uses a civil-time clock to measure a duration. The first design decision is therefore a policy decision: will your deployment follow the UTC leap event directly, or will it use a smear?

Choose one time policy before configuring clients

UTC-aligned processing preserves the event as represented by UTC. A leap smear distributes the adjustment across a defined interval, making the exposed clock smoother but intentionally offset from UTC during that interval. RFC 8633 states that smearing trades UTC fidelity for consistency in systems that do not handle an abrupt event safely: “The purpose of leap smearing is to enable systems that don’t deal with the leap-second event properly to function consistently, at the expense of fidelity to UTC during the smear window.” Read the full operational guidance in RFC 8633.

Policy What hosts observe Primary benefit Primary risk Use when
UTC-aligned leap processing A time protocol can announce the event and a supported client or operating system applies it. The wall clock may pause or repeat a second according to its implementation. UTC traceability and compatibility with systems that require the actual UTC event. Non-monotonic or unusual wall-clock behavior can expose assumptions in applications and data pipelines. You need direct UTC alignment, legal or scientific traceability, or interoperability with systems that process leap announcements.
Leap smear The adjustment is spread before and/or after the event, so the clock changes rate slightly instead of making an abrupt step. Smoother behavior for applications that cannot safely process a leap event. The clock is not UTC during the smear; different algorithms or windows can disagree. Your entire time domain can use one documented smear and consumers do not require UTC fidelity during the window.

RFC 8633 records successful smear periods from two to twenty-four hours. Google recommends a 24-hour linear smear centered on the leap, from noon to noon UTC, and reports an adjustment of about 11.6 parts per million; its documentation is at Google’s leap-smear page. Those values describe named approaches, not a universal industry setting. A provider may use a different duration, curve, center point, or protocol-specific policy.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Why mixing policies is dangerous

A time client compares candidate sources to decide which one is usable. During a leap event, a smeared source and an unsmeared source can differ by roughly the accumulated adjustment and can present different leap indicators. RFC 8633 documents a 2015 incident in which two of four sources supplied UTC/POSIX time while two supplied smeared time; clients could not determine an accurate source. AWS gives the same operational warning in its EC2 time guidance at AWS time synchronization documentation.

Do not place mixed sources in one NTP pool or client configuration merely because they are normally close. Keep sources semantically consistent for the period in which a leap can be announced and applied. If you must bridge two domains with different policies, make the boundary explicit and convert timestamps with the policy and interval recorded.

Rank #2
Sale
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

Inventory every clock your workload can consume

Start with an inventory rather than a hostname list. A container may inherit a host clock, a database may use its own service time, and a cloud instance may expose NTP and PTP interfaces with different behavior. Record the protocol, provider, endpoint, leap policy, and whether the source is used for application timestamps, kernel synchronization, hardware timestamping, or monitoring.

  • List NTP servers and pools configured on hosts, images, orchestration nodes, and appliances.
  • Identify PTP grandmasters, hardware clocks, NIC timestamping paths, and any service that reads a PTP device directly.
  • Document cloud-specific time services separately from public NTP endpoints.
  • Trace databases, message brokers, job schedulers, certificate validators, logging agents, and tracing systems to the clock API they call.
  • Record time settings in containers and virtual machines; a container normally sees the host’s kernel clock, while a virtual machine may have additional synchronization mechanisms.
  • Capture the expected policy in configuration management so a replacement host cannot silently select a different source.

For each source, answer four questions: Does it smear? Over what interval and with what algorithm? Does it announce or insert a UTC leap? Does its behavior differ between NTP, PTP, and a local hardware clock? If the provider does not state an answer, treat the behavior as unknown and do not mix it with a source whose policy is known.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Configure a consistent source set

Use this procedure for each deployment or trust domain. The exact daemon directives vary by operating system and NTP/PTP implementation, so verify syntax in the documentation for the version you run.

  1. Choose the policy. Write down either “UTC-aligned leap processing” or the exact smear definition, including provider, algorithm, start and end times, and whether it applies to NTP, PTP, or both.
  2. Map consumers to sources. For every host class and cloud workload, record the actual endpoint or device used. Do not infer behavior from a vendor name; the same provider can expose different policies on different interfaces.
  3. Remove semantic outliers. During a potential event, a client must not compare a smeared source with an unsmeared source. Split configurations or use a conversion boundary instead of combining them in one source list.
  4. Provide independent references. RFC 8633 recommends at least four independent, diverse sources for operators concerned with accurate time. Diversity helps detect a bad source, but source count cannot protect against a systemic fault or a shared implementation failure.
  5. Set alert thresholds. Alert on offset, jitter, stratum or quality changes, source reachability, and disagreement between sources. Use a separate alert for policy disagreement, not just absolute offset.
  6. Record the decision. Put the policy and source inventory in the runbook, architecture documentation, and host bootstrap configuration. Include an owner and a date for revalidation because provider behavior can change.

Cloud and protocol behavior is interface-specific

Official cloud documentation illustrates why the exact interface matters. Verify the endpoint your workload consumes immediately before a leap event.

Service or source Documented behavior Operational implication
AWS Amazon Time Sync Service over local NTP AWS says the service smears during a leap event. Instances using this NTP path should not also select an unsmeared source during the event.
AWS time.aws.com NTP pool AWS documents smear behavior for this NTP pool. Treat it as a smeared source and keep the client source set consistent.
AWS PTP hardware clock AWS says the PTP hardware clock adds the leap second according to UTC standards. NTP and PTP on the same instance can have different semantics; select deliberately for the workload.
Google Cloud Compute Engine time servers Google Cloud documents a 24-hour smear, 12 hours before and 12 hours after the event, and warns that external NTP services may differ. Do not add an external unsmeared server to the same client configuration without a policy decision.

Read the current provider pages for your region, instance family, operating-system image, and protocol. AWS’s details are in its EC2 time guide; Google Cloud’s are in its NTP configuration documentation. Provider behavior and event announcements are volatile, so a configuration that was correct for a previous event may not be correct for the next one.

Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

Keep elapsed time separate from civil time in application code

Use monotonic clocks for durations

Timeouts, retry backoffs, lease lengths, circuit-breaker windows, and request latency require elapsed time. Compute them from a monotonic clock that is not set backward when wall time is corrected. The API name and guarantees differ by language and runtime; consult the official documentation for the runtime and version you deploy, including resolution and behavior across suspend or migration.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Capture a monotonic start value and subtract it from a later monotonic value.
  • Pass a duration or deadline through a call chain rather than recomputing a wall-clock expiry at each hop.
  • For a distributed deadline, transmit a civil timestamp only when the protocol requires one, and include a bounded remaining-duration calculation at each receiver.
  • Never derive a timeout by subtracting two independently sampled wall-clock timestamps.

Use wall clocks for civil timestamps

Wall-clock APIs are appropriate for event timestamps that must be related to UTC, calendar dates, retention policies, audit records, and human schedules. They are not guaranteed to increase smoothly. Store enough context to interpret an event: the timestamp, time scale or policy, source domain when relevant, and a sequence or unique identifier for tie-breaking.

Ordering by timestamp alone is unsafe around repeated or closely spaced values. Use a database sequence, message offset, logical clock, or host-and-counter combination when a strict order is required. If two services use different smear policies, their timestamps can be ordered incorrectly even though each local clock appears smooth.

Design expiry and scheduling rules explicitly

Define whether an expiry means “after 30 elapsed seconds” or “at 12:00:30 UTC.” The first is a duration and belongs on a monotonic clock. The second is a civil-time appointment and needs a wall clock plus a policy for a repeated, skipped, or adjusted instant. A scheduler should specify what happens when a local time occurs twice, when a leap announcement is missed, and when the process restarts near the event.

Runbook for an announced leap event

Before the event

  1. Confirm the announcement and the expected UTC event time from an authoritative source.
  2. Recheck every provider’s current NTP and PTP policy and compare it with your inventory.
  3. Verify that all time clients in each policy domain select only compatible sources.
  4. Check monitoring for source disagreement, offset trends, unreachable servers, and daemon errors.
  5. Exercise a staging or test environment with the same daemon, kernel, image, and provider interfaces.
  6. Notify owners of systems that require UTC traceability, high-precision synchronization, or strict timestamp ordering.
  7. Freeze unnecessary time-configuration changes for the event window and ensure rollback instructions are available.

During the event and smear window

  1. Watch offset and source-selection metrics at a higher sampling rate than usual.
  2. Check application error rates, scheduler activity, queue delays, duplicate-key errors, and timestamp-ordering anomalies.
  3. Do not force a manual clock step merely to make two differently governed sources agree; first correct the policy mismatch.
  4. Keep logs of source identity, leap indicators, offsets, and daemon decisions so an incident can be reconstructed.
  5. If a source disagrees with the rest, isolate it according to the runbook rather than adding more heterogeneous sources.

After the event

  1. Confirm that offsets have returned to their normal range and that the selected source set is stable.
  2. Check for repeated timestamps, missing scheduled jobs, duplicated jobs, delayed expiries, and database or queue ordering anomalies.
  3. Compare NTP and PTP readings where both are intentionally used, documenting the expected policy difference.
  4. Review alerts and logs, then update the inventory with any endpoint or provider behavior that differed from prior documentation.

Test failure and recovery paths, not only the happy path

A leap event is infrequent, so production observation is a poor test strategy. Build a clock-injection or time-service test harness where possible, and keep the test separate from production synchronization.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
  • Announcement received: Verify that the daemon records the leap indicator and follows the configured policy.
  • Announcement missed: Confirm recovery when the host reconnects, restarts, or receives a corrected source after the event.
  • Daemon restart: Restart the time service immediately before, during, and after a simulated event; check that state is not lost or applied twice.
  • Repeated wall timestamp: Feed duplicate civil timestamps to log ingestion, database keys, and deduplication code.
  • Source disagreement: Present smeared and unsmeared candidates and verify that the client rejects or isolates the incompatible source.
  • Negative leap: If your protocol and implementation support it, test deletion of a second as well as insertion. RFC 8633 notes that NTP supports a negative leap second even though historically described events had been positive.
  • Long-running timers: Ensure leases, retries, and circuit breakers continue to use monotonic elapsed time while wall time is adjusted.
  • Cross-service timestamps: Verify conversion, ordering, and display when one test service uses a documented smear and another uses UTC-aligned time.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Monitor agreement and quality continuously

Offset from a single reference is not enough. A source can be consistently wrong, and several clients can share the same faulty upstream. Monitor each source’s reachability, delay, jitter, stratum or quality indicator, leap status, and measured offset. Compare independent sources and alert on divergence before it becomes an application incident.

Use at least four independent, diverse references when accurate time is important, following RFC 8633’s operational recommendation. “Independent” should mean more than four hostnames: avoid a single network path, provider, implementation, or power domain that can fail together. Keep a record of which references are intentionally in the same smear domain.

For high-precision systems, measure the interface actually used for timestamping. A host’s NTP-synchronized wall clock, a PTP clock, and a NIC hardware clock may not share the same leap policy. ITU’s discussion of data-centre synchronization notes that demanding distributed-storage workloads can require guarantees for which smearing is not safe; see ITU’s time-synchronization article.

When a smear is and is not appropriate

Smearing is useful when the dominant requirement is a continuously advancing operational clock and every participant can use the same smear definition. It is not a cosmetic display trick: during the interval, the clock represents a deliberate time scale that differs from UTC. Document the provider, algorithm, interval, and conversion method anywhere timestamps cross that boundary.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose UTC-aligned processing when records must be traceable to UTC at the event, when external systems consume leap indicators, or when your precision and interoperability requirements cannot tolerate a smear offset. Choose a smear only after confirming that consumers do not require UTC fidelity during the window and that all sources a client may compare use the same scheme.

Best Value
Sale
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display | 85W Max PD, 1 Powered USB-C 5Gbps & 2 Powered USB-A 3.0 5Gbps Data Ports, for MacBook Pro, MacBook Air, Dell and More (Black)
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

Troubleshoot common symptoms

Hosts disagree by an amount that grows during the event

Check for a mixed smear window or algorithm first. Compare the actual NTP or PTP endpoint and leap status on each host, not just the configured provider label. Remove the incompatible source or place the workload in a single policy domain.

Timeouts fire early or late

Inspect the code path for wall-clock subtraction. Replace it with the runtime’s monotonic clock and a duration-based deadline. Then verify that suspend, migration, and process restarts are handled according to the runtime’s documented monotonic-clock guarantees.

Logs contain duplicate or out-of-order timestamps

Assume that civil timestamps are not a total order. Add a sequence, logical clock, message offset, or another tie-breaker, and retain the original wall timestamp for audit and display.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

NTP source selection becomes unstable

Check whether candidates advertise different leap semantics or whether one source is unreachable or delayed. Mixed UTC and smeared sources can prevent a client from identifying an accurate source; restore a homogeneous source set and inspect offset, jitter, and reachability metrics.

NTP and PTP disagree on one host

Determine whether the interfaces intentionally implement different policies. AWS, for example, documents smear for its NTP paths and UTC leap insertion for its PTP hardware clock. Either select one interface for the workload or explicitly design the conversion and comparison boundary.

Document the policy so it survives operations changes

Your runbook should state the selected time scale, every source and protocol, smear interval and algorithm if applicable, expected leap behavior, monitoring queries, alert thresholds, event contacts, and rollback steps. Include examples of valid and invalid source combinations. Record the operating-system, daemon, PTP stack, and cloud-image versions whose behavior was verified, because a package or provider change can alter implementation details.

Revalidate the runbook at least quarterly and before an announced event. Provider documentation, endpoint behavior, and event schedules can change sooner than a normal infrastructure review cycle. The authoritative references for the principles in this guide are NIST, RFC 8633, Google’s smear documentation, AWS’s EC2 time guidance, and Google Cloud’s NTP guidance.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.