Ineu Posted August 24, 2006 Report Posted August 24, 2006 На одном индусском форуме программистов задали вопрос: "Как вычислить завтрашнюю дату?" Ответ был шедевральным и уже разошелся почти по всему миру void get_tomorrow_date( struct timeval *date ) { sleep( 86400 ); // 60 * 60 * 24 gettimeofday( date, 0 ); } Quote
Ineu Posted August 24, 2006 Author Report Posted August 24, 2006 Ну... это с форума наг.ру, там первоисточник не указан Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.