Lines Matching refs:utc
1395 utc_to_tod(time_t utc) in utc_to_tod() argument
1408 if (utc < 0) /* should never happen */ in utc_to_tod()
1409 utc = 0; in utc_to_tod()
1411 saved_tod.tod_sec += utc - saved_utc; in utc_to_tod()
1412 saved_utc = utc; in utc_to_tod()
1416 dse = utc / 86400; /* days since epoch */ in utc_to_tod()
1418 tod.tod_sec = utc % 60; in utc_to_tod()
1419 tod.tod_min = (utc % 3600) / 60; in utc_to_tod()
1420 tod.tod_hour = (utc % 86400) / 3600; in utc_to_tod()
1444 time_t utc; in tod_to_utc() local
1510 utc = (year - 70); /* next 3 lines: utc = 365y + y/4 */ in tod_to_utc()
1511 utc += (utc << 3) + (utc << 6); in tod_to_utc()
1512 utc += (utc << 2) + ((year - 69) >> 2); in tod_to_utc()
1513 utc += days_thru_month[month] + tod.tod_day - 1; in tod_to_utc()
1514 utc = (utc << 3) + (utc << 4) + tod.tod_hour; /* 24 * day + hour */ in tod_to_utc()
1515 utc = (utc << 6) - (utc << 2) + tod.tod_min; /* 60 * hour + min */ in tod_to_utc()
1516 utc = (utc << 6) - (utc << 2) + tod.tod_sec; /* 60 * min + sec */ in tod_to_utc()
1518 return (utc); in tod_to_utc()