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 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
--
Dr. Roland Fuß
Thünen-Institut für Agrarklimaschutz/
Thünen Institute of Climate-Smart Agriculture
Bundesallee 65
D-38116 Braunschweig, Germany
Tel.: ++49 531 596 2627
Fax: ++49 531 596 2699
Email: roland.f...@thuenen.de
Arbeitsgruppe "Emissionsberichterstattung"/
Working group "Emission Inventories"
Email: emissionsinvent...@thuenen.de
Das Johann Heinrich von Thünen-Institut,
Bundesforschungsinstitut für Ländliche Räume,
Wald und Fischerei – kurz: Thünen-Institut –
besteht aus 15 Fachinstituten, die in den
Bereichen Ökonomie, Ökologie und Technologie
forschen und die Politik beraten.
The Johann Heinrich von Thünen Institute,
Federal Research Institute for Rural Areas,
Forestry and Fisheries – Thünen Institute in brief –
consists of 15 specialized institutes that
carry out research and provide policy advice
in the fields of economy, ecology and technology.
______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel