Lines Matching refs:utc
1370 utc_to_tod(time_t utc) in utc_to_tod() argument
1383 if (utc < 0) /* should never happen */ in utc_to_tod()
1384 utc = 0; in utc_to_tod()
1386 saved_tod.tod_sec += utc - saved_utc; in utc_to_tod()
1387 saved_utc = utc; in utc_to_tod()
1391 dse = utc / 86400; /* days since epoch */ in utc_to_tod()
1393 tod.tod_sec = utc % 60; in utc_to_tod()
1394 tod.tod_min = (utc % 3600) / 60; in utc_to_tod()
1395 tod.tod_hour = (utc % 86400) / 3600; in utc_to_tod()
1419 time_t utc; in tod_to_utc() local
1485 utc = (year - 70); /* next 3 lines: utc = 365y + y/4 */ in tod_to_utc()
1486 utc += (utc << 3) + (utc << 6); in tod_to_utc()
1487 utc += (utc << 2) + ((year - 69) >> 2); in tod_to_utc()
1488 utc += days_thru_month[month] + tod.tod_day - 1; in tod_to_utc()
1489 utc = (utc << 3) + (utc << 4) + tod.tod_hour; /* 24 * day + hour */ in tod_to_utc()
1490 utc = (utc << 6) - (utc << 2) + tod.tod_min; /* 60 * hour + min */ in tod_to_utc()
1491 utc = (utc << 6) - (utc << 2) + tod.tod_sec; /* 60 * min + sec */ in tod_to_utc()
1493 return (utc); in tod_to_utc()