Lines Matching refs:curdate
2186 struct tm curdate; /* Current date */ in cupsdSaveAllJobs() local
2200 localtime_r(&curtime, &curdate); in cupsdSaveAllJobs()
2201 strftime(temp, sizeof(temp) - 1, "%Y-%m-%d %H:%M", &curdate); in cupsdSaveAllJobs()
2314 struct tm curdate; /* Current date */ in cupsdSetJobHoldUntil() local
2384 localtime_r(&curtime, &curdate); in cupsdSetJobHoldUntil()
2386 if (curdate.tm_hour < 18) in cupsdSetJobHoldUntil()
2390 ((29 - curdate.tm_hour) * 60 + 59 - in cupsdSetJobHoldUntil()
2391 curdate.tm_min) * 60 + 60 - curdate.tm_sec; in cupsdSetJobHoldUntil()
2400 localtime_r(&curtime, &curdate); in cupsdSetJobHoldUntil()
2402 if (curdate.tm_hour < 6 || curdate.tm_hour >= 18) in cupsdSetJobHoldUntil()
2406 ((17 - curdate.tm_hour) * 60 + 59 - in cupsdSetJobHoldUntil()
2407 curdate.tm_min) * 60 + 60 - curdate.tm_sec; in cupsdSetJobHoldUntil()
2416 localtime_r(&curtime, &curdate); in cupsdSetJobHoldUntil()
2418 if (curdate.tm_hour >= 16) in cupsdSetJobHoldUntil()
2422 ((15 - curdate.tm_hour) * 60 + 59 - in cupsdSetJobHoldUntil()
2423 curdate.tm_min) * 60 + 60 - curdate.tm_sec; in cupsdSetJobHoldUntil()
2432 localtime_r(&curtime, &curdate); in cupsdSetJobHoldUntil()
2434 if (curdate.tm_hour < 8) in cupsdSetJobHoldUntil()
2438 ((23 - curdate.tm_hour) * 60 + 59 - in cupsdSetJobHoldUntil()
2439 curdate.tm_min) * 60 + 60 - curdate.tm_sec; in cupsdSetJobHoldUntil()
2448 localtime_r(&curtime, &curdate); in cupsdSetJobHoldUntil()
2450 if (curdate.tm_wday == 0 || curdate.tm_wday == 6) in cupsdSetJobHoldUntil()
2454 (((5 - curdate.tm_wday) * 24 + in cupsdSetJobHoldUntil()
2455 (17 - curdate.tm_hour)) * 60 + 59 - in cupsdSetJobHoldUntil()
2456 curdate.tm_min) * 60 + 60 - curdate.tm_sec; in cupsdSetJobHoldUntil()
2465 gmtime_r(&curtime, &curdate); in cupsdSetJobHoldUntil()
2468 ((hour - curdate.tm_hour) * 60 + minute - in cupsdSetJobHoldUntil()
2469 curdate.tm_min) * 60 + second - curdate.tm_sec; in cupsdSetJobHoldUntil()