From edd at debian.org  Fri Jul  3 10:54:28 2015
From: edd at debian.org (Dirk Eddelbuettel)
Date: Fri, 3 Jul 2015 03:54:28 -0500
Subject: [Rd] additional leap second
In-Reply-To: <CAJqeyYadAMYAmEkOzTL8Qkg0sPHkvxHfbgP6Httph9dRnY-Dxg@mail.gmail.com>
References: <CAJqeyYamjze6vRrxCPJrpAq5kpp2L7TjOUc8r002jWathvgyCg@mail.gmail.com>
	<5593A13B.9080505@stats.ox.ac.uk>
	<CAJqeyYadAMYAmEkOzTL8Qkg0sPHkvxHfbgP6Httph9dRnY-Dxg@mail.gmail.com>
Message-ID: <21910.19908.267421.627243@max.nulle.part>


On 1 July 2015 at 18:02, Ei-ji Nakama wrote:
| sorry, i didnt watch src/main/datetime.c ...

Thanks again -- I also made that update for a Debian build 3.2.1-4.

Dirk

 
| Index: leap_second/src/main/datetime.c
| ===================================================================
| --- leap_second/src/main/datetime.c    (????? 68608)
| +++ leap_second/src/main/datetime.c    (?????)
| @@ -303,14 +303,15 @@
|  }
| 
|  #ifndef HAVE_POSIX_LEAPSECONDS
| -/* There have been 25 leapseconds: see .leap.seconds in R
| +/* There have been many leapseconds: see .leap.seconds in R
| + * (as.Date(.leap.seconds)-as.Date("1970-01-01"))*86400
|   */
| -static int n_leapseconds = 25;
|  static const time_t leapseconds[] =
|  {  78796800, 94694400,126230400,157766400,189302400,220924800,252460800,
|    283996800,315532800,362793600,394329600,425865600,489024000,567993600,
|    631152000,662688000,709948800,741484800,773020800,820454400,867715200,
| -   915148800,1136073600,1230768000,1341100800};
| +   915148800,1136073600,1230768000,1341100800,1435708800};
| +static int n_leapseconds = sizeof(leapseconds)/sizeof(time_t);
|  #endif
| 
|  static double guess_offset (stm *tm)
| 

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org



[Rd] additional leap second
Dirk Eddelbuettel