pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:1324:    *! @[time()], @[localtime()], @[mktime()], @[gmtime()]    */   PMOD_EXPORT   PIKEFUN string ctime(longest timestamp)    efun;    optflags OPT_TRY_OPTIMIZE;   {    time_t i;    char *s;    - #if SIZEOF_TIME_T < SIZEOF_LONGEST + #if SIZEOF_TIME_T < SIZEOF_INT64    if (timestamp > MAX_TIME_T || timestamp < MIN_TIME_T)    SIMPLE_ARG_ERROR ("ctime", 1, "Timestamp outside valid range.");   #endif       i = (time_t) timestamp;    s = ctime (&i);    if (!s) Pike_error ("ctime() on this system cannot handle "    "the timestamp %ld.\n", (long) i);    RETURN make_shared_string(s);   }