Lines Matching refs:trail
885 register int trail; in dumptime() local
909 trail = timeptr->tm_year % DIVISOR + TM_YEAR_BASE % DIVISOR; in dumptime()
911 trail / DIVISOR; in dumptime()
912 trail %= DIVISOR; in dumptime()
913 if (trail < 0 && lead > 0) { in dumptime()
914 trail += DIVISOR; in dumptime()
916 } else if (lead < 0 && trail > 0) { in dumptime()
917 trail -= DIVISOR; in dumptime()
921 (void) printf("%d", trail); in dumptime()
922 else (void) printf("%d%d", lead, ((trail < 0) ? -trail : trail)); in dumptime()
988 register int trail; in dumptimeICU() local
994 trail = loc.tm_year % DIVISOR + TM_YEAR_BASE % DIVISOR; in dumptimeICU()
995 lead = loc.tm_year / DIVISOR + TM_YEAR_BASE / DIVISOR + trail / DIVISOR; in dumptimeICU()
996 trail %= DIVISOR; in dumptimeICU()
997 if (trail < 0 && lead > 0) { in dumptimeICU()
998 trail += DIVISOR; in dumptimeICU()
1000 } else if (lead < 0 && trail > 0) { in dumptimeICU()
1001 trail -= DIVISOR; in dumptimeICU()
1005 fprintf(fp, "%04d-%02d-%02d", lead * DIVISOR + trail, loc.tm_mon + 1, loc.tm_mday); in dumptimeICU()