baron_amorph (baron_amorph) wrote,
baron_amorph
baron_amorph

Индусы жгут нипадецки :)

Программистский шедевр на индусском форуме на тему "как узнать завтрашнюю дату" остался непревзойденным:
Code:--------------------------------------------------------------------------------
void get_tomorrow_date( struct timeval date )
{
sleep( 86400 ); // 60 60 * 24

gettimeofday( date, 0 );
}
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 0 comments