[Rd] NEWS on time zone reconciliation in [<-.POSIXlt
Suharto Anggono Suharto Anggono
@uh@rto_@nggono @end|ng |rom y@hoo@com
Sun Apr 19 16:35:13 CEST 2026
Because it is the core of PR#18919, it would be proper for the NEWS item to mention PR#18919.
_______
On Friday, 17 April 2026 at 02:13:48 pm GMT+7, Suharto Anggono Suharto Anggono <suharto_anggono using yahoo.com> wrote:
[...]
No, such a NEWS item should be for R 4.6.0. The porting of time zone reconciliation in '[<-.POSIXlt' and '[<-.POSIXlt' has been removed from R-4-5-branch.
--------
On Friday, 10 April 2026 at 09:58:25 pm GMT+7, Martin Maechler <maechler using stat.math.ethz.ch> wrote:
>>>>> Suharto Anggono Suharto Anggono via R-devel
>>>>> on Tue, 7 Apr 2026 10:34:46 +0000 (UTC) writes:
[...]
> Finally, I think the change of
> as.POSIXlt(value)
> to
> if(inherits(value, "POSIXlt") && identical(tz, attr(value, "tzone")))
> value
> else as.POSIXlt(as.POSIXct(value), tz = tz[1L]))
> in '[<-.POSIXlt' and '[[<-.POSIXlt', which is the core of PR#18919, deserves a NEWS item mentioning time zone. For example,
> In subassigning 'val' to a POSIXlt object 'x', x[i] <- val and x[[i]] <- val, now 'val' is converted to the time zone of 'x'.
Yes, you are right; I will add this to the (relatively old) NEWS of R 4.5.2 ..
[...]
[[alternative HTML version deleted]]
More information about the R-devel
mailing list