Lines Matching refs:seconds

103 // be tracked as the number of seconds from this date/time.
143 unsigned int secsDouble; /* seconds floating pt */
144 unsigned char seconds; /* seconds whole num */
178 unsigned int seconds;
395 double seconds;
518 /* Read the leap seconds info from the TSYNC-PCI device */
590 // Pull seconds information from time object
591 seconds = (double) (TimeContext.timeObj.secsDouble);
592 seconds /= (double) 1000000.0;
601 ** The specTimeStamp is the number of seconds since 1/1/1970, while the
602 ** peer's lastrec time should be compatible with NTP which is seconds since
603 ** 1/1/1900. So Add the number of seconds between 1900 and 1970 to the
616 TimeContext.timeObj.minutes, seconds);
622 pp->second = (int) seconds;
623 seconds = (seconds - (double) (pp->second / 1.0)) * 1000000000;
624 pp->nsec = (long) seconds;
655 // which handles leap seconds then
772 // Description: The ApplyTimeOffset function adds an offset (in seconds) to a
781 SecTimeObj st; // Time, in seconds
784 // Convert date and time to seconds
788 st.seconds = (int)((signed long long)st.seconds + (signed long long)off);
790 // Convert seconds to date and time
799 // and time into a count of seconds since the base time. This
805 // 2. Conversion does not account for leap seconds.
814 pSt->seconds = 0;
821 pSt->seconds += lyrs * SECSPERLEAPYEAR;
822 pSt->seconds += (yrs - lyrs) * SECSPERYEAR;
824 // Convert days, hours, minutes and seconds
825 pSt->seconds += (pDt->doy - 1) * SECSPERDAY;
826 pSt->seconds += pDt->hour * SECSPERHR;
827 pSt->seconds += pDt->minute * SECSPERMIN;
828 pSt->seconds += pDt->second;
839 // of seconds since the start of our base time into a SecTimeObj
844 // 2. Conversion does not account for leap seconds.
855 // Convert the seconds count into a signed 64-bit number for calculations
856 secs = (signed long long)(pSt->seconds);