Skip to content
Prev 21768 / 63424 Next

Date conversion with as.POSIXct and as.POSIXlt (PR#9196)

Note that there is some discussion in the help desk article
in R News 4/1 and a table of tested conversions at
the end of that article.    If x is of class "Date" then for
converting from Date to POSIXct the table suggests
as.POSIXct(format(x)) or as.POSIXct(format(x), tz = "GMT")
according to whether you want the current time zone or GMT.
On 9/1/06, erich.neuwirth at univie.ac.at <erich.neuwirth at univie.ac.at> wrote: