pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:558:    Pike_error("time out of range\n");    }       /*! @decl void create()    *! Construct a new TM, all fields will be set to 0.    */    PIKEFUN void create( )    {    memset( &THIS->t, 0, sizeof( struct tm ) );    THIS->t.tm_isdst = -1; +  THIS->t.tm_mday = 1;    THIS->unix_time = 0;    THIS->modified = 1;    }       /*! @decl void create( int year, int(0..11) mon, int(1..31) mday, @    *! int(0..24) hour, int(0..59) min, int(0..59) sec, @    *! string|void timezone )    *! Construct a new time using the given values.    *! Slightly faster than setting them individually.    */