Re: [Rd] Date method of as.POSIXct does not respect tz

2022-09-24 Thread Martin Maechler
> Martin Maechler > on Fri, 23 Sep 2022 11:04:12 +0200 writes: > Kurt Hornik > on Fri, 23 Sep 2022 09:57:49 +0200 writes: > Martin Maechler writes: > > Currently in R-devel, > > R> as.POSIXlt.Date > > function (x, ...) > > { > >if (any((y

Re: [Rd] Date method of as.POSIXct does not respect tz

2022-09-23 Thread Martin Maechler
> Kurt Hornik > on Fri, 23 Sep 2022 09:57:49 +0200 writes: > Martin Maechler writes: > Currently in R-devel, R> as.POSIXlt.Date > function (x, ...) > { >if (any((y <- unclass(x)) > .Machine$integer.max, na.rm = TRUE)) >

Re: [Rd] Date method of as.POSIXct does not respect tz

2022-09-23 Thread Kurt Hornik
> Martin Maechler writes: Currently in R-devel, R> as.POSIXlt.Date function (x, ...) { if (any((y <- unclass(x)) > .Machine$integer.max, na.rm = TRUE)) as.POSIXlt(.POSIXct(y * 86400), tz = "UTC") else .Internal(Date2POSIXlt(x)) } R> as.POSIXct.Date function (x, ...)

Re: [Rd] Date method of as.POSIXct does not respect tz

2022-09-23 Thread Martin Maechler
> Roland Fuß > on Tue, 20 Sep 2022 09:25:52 +0200 writes: > Hello, May I follow up on this? Has it fallen through the > cracks or were there considerations against passing `tz` > to `.POSIXct`? > Regards, > Roland Hmm... I don't remember even though I had

Re: [Rd] Date method of as.POSIXct does not respect tz

2022-09-20 Thread Roland Fuß
Hello, May I follow up on this? Has it fallen through the cracks or were there considerations against passing `tz` to `.POSIXct`? Regards, Roland Am 17.05.2018 um 19:55 schrieb Martin Maechler: Roland Fuß on Wed, 16 May 2018 17:21:07 +0200 writes: > R 3.5.0 Is it intended that

Re: [Rd] Date method of as.POSIXct does not respect tz

2018-05-18 Thread Roland Fuß
Am 17.05.2018 um 19:55 schrieb Martin Maechler: Roland Fuß on Wed, 16 May 2018 17:21:07 +0200 writes: > R 3.5.0 Is it intended that the Date method of as.POSIXct > does not respect the tz parameter? I suggest changing > as.POSIXct.Date which is function (x, ...)

Re: [Rd] Date method of as.POSIXct does not respect tz

2018-05-17 Thread Martin Maechler
> Roland Fuß > on Wed, 16 May 2018 17:21:07 +0200 writes: > R 3.5.0 Is it intended that the Date method of as.POSIXct > does not respect the tz parameter? I suggest changing > as.POSIXct.Date which is function (x, ...) .POSIXct(unclass(x) * 86400) > to this:

[Rd] Date method of as.POSIXct does not respect tz

2018-05-16 Thread Roland Fuß
R 3.5.0 Is it intended that the Date method of as.POSIXct does not respect the tz parameter? I suggest changing as.POSIXct.Date to this: function (x, tz = "", ...) .POSIXct(unclass(x) * 86400, tz = tz) Currently, the best workaround seems to be using the character method if one doesn't