variable NTP_LEAP_INDICATOR

leapIndicator values carried in the first byte of an NTP header (RFC 5905 ยง7.3), warning of an impending leap second.

Examples

Example 1

import { assertEquals } from "@std/assert";
import { NTP_LEAP_INDICATOR } from "@binstruct/ntp";

assertEquals(NTP_LEAP_INDICATOR.NO_WARNING, 0);
assertEquals(NTP_LEAP_INDICATOR.UNSYNCHRONIZED, 3);

Properties

NO_WARNING: number

No leap second warning.

Last minute of the day has 61 seconds.

Last minute of the day has 59 seconds.

Clock unsynchronized.

Usage

import { NTP_LEAP_INDICATOR } from ".";