Displaying 1 result from an estimated 1 matches for "using_leapseconds".
2001 Apr 09
1
syntax error in datetime.c (PR#901)
...his syntax error.
--- R-1.2.2/src/main/datetime.c.orig Mon Apr 9 11:24:14 2001
+++ R-1.2.2/src/main/datetime.c Mon Apr 9 11:25:11 2001
@@ -300,10 +300,10 @@
SEXP do_systime(SEXP call, SEXP op, SEXP args, SEXP env)
{
time_t res = time(NULL);
+ SEXP ans = allocVector(REALSXP, 1);
#ifdef USING_LEAPSECONDS
res -= 22;
#endif
- SEXP ans = allocVector(REALSXP, 1);
if(res != (time_t)(-1)) REAL(ans)[0] = (double) res;
else REAL(ans)[0] = NA_REAL;
return ans;
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci....