pike.git/
src/
builtin_functions.c
Branch:
Tag:
Non-build tags
All tags
No tags
1998-03-12
1998-03-12 13:34:28 by Henrik Grubbström (Grubba) <grubba@grubba.org>
4102d06ebebaa9c678fe95074e3db1f3cd85c2dc (
10
lines) (+
5
/-
5
)
[
Show
|
Annotate
]
Branch:
0.5
time() now updates current_time.
Rev: src/builtin_functions.c:1.63
4:
||| See the files COPYING and DISCLAIMER for more information. \*/ #include "global.h"
-
RCSID("$Id: builtin_functions.c,v 1.
62
1998/03/
03
14
:
28
:
47
grubba Exp $");
+
RCSID("$Id: builtin_functions.c,v 1.
63
1998/03/
12
13
:
34:
28 grubba Exp $");
#include "interpret.h" #include "svalue.h" #include "pike_macros.h"
684:
void f_time(INT32 args) { pop_n_elems(args);
-
if(args)
+
if(
!
args)
+
GETTIMEOFDAY(¤t_time);
push_int(current_time.tv_sec);
-
else
-
push_int((INT32)TIME(0));
+
} void f_crypt(INT32 args)