pike.git
/
src
/
builtin.cmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/builtin.cmod:1:
/* -*- c -*- || This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information.
-
|| $Id: builtin.cmod,v 1.
159
2008/04/
22
18
:
18
:
17
mast Exp $
+
|| $Id: builtin.cmod,v 1.
160
2008/04/
23
07
:
37
:
03
mast Exp $
*/ #include "global.h" #include "interpret.h" #include "svalue.h" #include "pike_macros.h" #include "object.h" #include "program.h" #include "array.h" #include "pike_error.h"
pike.git/src/builtin.cmod:568:
#if SIZEOF_LONGEST > SIZEOF_INT_TYPE if (!int64_from_bignum (&tt, Pike_sp[0-1].u.object)) #endif SIMPLE_ARG_ERROR ("ctime", 1, "Integer too large."); #else tt = Pike_sp[0-1].u.integer; #endif #if SIZEOF_TIME_T < SIZEOF_LONGEST if (tt > MAX_TIME_T || tt < MIN_TIME_T)
-
SIMPLE_ARG_ERROR ("
gmtime
", 1, "Timestamp outside valid range.");
+
SIMPLE_ARG_ERROR ("
ctime
", 1, "Timestamp outside valid range.");
#endif i = (time_t) tt; s = ctime (&i); if (!s) Pike_error ("ctime() on this system cannot handle " "the timestamp %ld.\n", (long) i); RETURN make_shared_string(s); } /*! @decl mapping mkmapping(array ind, array val)