From m@echler @ending from @t@t@m@th@ethz@ch  Thu May 17 19:55:13 2018
From: m@echler @ending from @t@t@m@th@ethz@ch (Martin Maechler)
Date: Thu, 17 May 2018 19:55:13 +0200
Subject: [Rd] Date method of as.POSIXct does not respect tz
In-Reply-To: <65932fa5-535d-19e4-2a70-7a6ffd10dfa4@thuenen.de>
References: <65932fa5-535d-19e4-2a70-7a6ffd10dfa4@thuenen.de>
Message-ID: <23293.49665.770796.423446@stat.math.ethz.ch>

>>>>> 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:

    function (x, tz = "", ...)
         .POSIXct(unclass(x) * 86400, tz = tz)

or rather just forward the '...', i.e., use

    function (x, ...) .POSIXct(unclass(x) * 86400, ...)

??

    > Currently, the best workaround seems to be using the
    > character method if one doesn't want the default timezone
    > (which is often an annoying DST timezone).

    > This came up on Stack Overflow:
    > https://stackoverflow.com/q/50373340/1412059

    > --
    > Roland

Thank you Roland for your notice (and the help on SO).

Best,
Martin



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