Lines Matching refs:leap
518 /* Read the leap seconds info from the TSYNC-PCI device */
555 // Extract leap second info from ioctl payload and perform byte swapping
651 // Subtract leap second info by one second to determine effective day
654 // If there is a leap second today and the KTS is using a time scale
655 // which handles leap seconds then
663 pp->leap = LEAP_ADDSECOND;
668 pp->leap = LEAP_DELSECOND;
670 // Else report no leap second pending (no handling of offsets
674 pp->leap = LEAP_NOWARNING;
677 // Else report no leap second pending
680 pp->leap = LEAP_NOWARNING;
683 peer->leap = pp->leap;
752 pp->leap = LEAP_NOTINSYNC;
753 peer->leap = pp->leap;
776 // Assumptions: 1. Every fourth year is a leap year. Therefore, this function
803 // Assumptions: 1. A leap year is any year evenly divisible by 4. Therefore,
805 // 2. Conversion does not account for leap seconds.
816 // Calculate the number of years and leap years
820 // Convert leap years and years
842 // Assumptions: 1. A leap year is any year evenly divisible by 4. Therefore,
844 // 2. Conversion does not account for leap seconds.
879 // If there is still at least a leap year worth of time left
882 // Increment the number of years and subtract a leap year of time