pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:571:       /*! @decl void create(int|Gmp.mpz t)    *! Create a new @[TM] initialized from a unix time_t.    *! The timezone will always be UTC when using this function.    */    PIKEFUN void create( int|object(Gmp.mpz)|object(Gmp.bignum) _t )    {    f_TM_gmtime( 1 );    if( Pike_sp[-1].u.integer == 0 )    Pike_error("time out of range\n"); +  pop_stack();    }       /*! @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;
pike.git/src/builtin.cmod:615:    if (strcmp(timezone->str, "UTC"))    Pike_error("Timezone must either be UTC or omitted.\n");    use_utc = 1;    }    if (use_utc)    t->tm_isdst = 0;    THIS->unix_time = mktime_zone(&THIS->t, use_utc, 0);    /* Setting it to other timezones than UTC is not supported (yet) */    if (use_utc)    SET_ZONE(THIS, "UTC"); +  pop_n_elems(args);    }      #ifdef PIKE_NULL_IS_SPECIAL    INIT {    THIS->modified = 0;    }   #endif   }   /*! @endclass    */