pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:5618:   #elif defined(HAVE_EXTERNAL_TIMEZONE)    /* Assume dst is one hour. */    push_int(timezone - 3600*tm->tm_isdst);   #else    /* Assume dst is one hour. */    push_int(-3600*tm->tm_isdst);   #endif    f_aggregate_mapping(20);   }    - time_t mktime_zone(const char *fname, struct tm *date, -  int other_timezone, int tz) + time_t mktime_zone(struct tm *date, int other_timezone, int tz)   {    time_t retval;    int normalised_time;       date->tm_wday = -1; /* flag to determine failure */       {    int sec, min, hour;    sec = date->tm_sec;    min = date->tm_min;
pike.git/src/builtin_functions.c:5750:    memset(&date, 0, sizeof(date));    date.tm_sec=sec;    date.tm_min=min;    date.tm_hour=hour;    date.tm_mday=mday;    date.tm_mon=mon;    date.tm_year=year;    date.tm_isdst=isdst;    /* date.tm_zone = NULL; */    -  retval = mktime_zone("mktime", &date, +  retval = mktime_zone(&date,    args > 7 && SUBTYPEOF(Pike_sp[7-args]) == NUMBER_NUMBER,    tz);       pop_n_elems(args);   #if SIZEOF_TIME_T > SIZEOF_INT_TYPE    push_int64 (retval);   #else    push_int(retval);   #endif   }