'Does lubridate really register leap seconds?

I am looking at the R package lubridate. I am comparing its functions days() and ddays(). According to Wikipedia and to the global variable .leap.seconds, there is a leap second between 1997/06/30 and 1997/07/01. Therefore, I am expecting

ymd_hms("19970630 02:13:01", tz="GMT") + days(2) == ymd_hms("19970630 02:13:01", tz="GMT") + ddays(2)

to be FALSE, as days(x) merely increments the number of days by x, whereas ddays(x) increments the number of seconds by 86400x. However, the above statement returns TRUE. What am I missing?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source