Шедевральное
Aug. 15th, 2006 16:15На одном индусском форуме программистов задали вопрос: "Как вычислить завтрашнюю дату?".
Ответ был шедевральным и уже разошёлся по всему миру:
Update: http://community.livejournal.com/code_wtf/45892.html?thread=382532#t382532
Ответ был шедевральным и уже разошёлся по всему миру:
void get_tomorrow_date( struct timeval *date )
{
sleep( 86400 ); // 60 * 60 * 24
gettimeofday( date, 0 );
}
via baryaUpdate: http://community.livejournal.com/code_wtf/45892.html?thread=382532#t382532
Посмотри тут :)
Date: Aug. 15th, 2006 12:32 (UTC)no subject
Date: Aug. 15th, 2006 13:07 (UTC)no subject
Date: Aug. 15th, 2006 13:51 (UTC)no subject
Date: Aug. 15th, 2006 18:08 (UTC)no subject
Date: Aug. 17th, 2006 06:07 (UTC)no subject
Date: Aug. 17th, 2006 06:30 (UTC)no subject
Date: Aug. 16th, 2006 07:20 (UTC)no subject
Date: Sep. 5th, 2006 11:10 (UTC)no subject
Date: Sep. 5th, 2006 20:10 (UTC)no subject
Date: Sep. 6th, 2006 04:19 (UTC)