[R] [External] Convert string to date time

Richard M. Heiberger rmh @end|ng |rom temp|e@edu
Wed Nov 27 02:11:35 CET 2024


> as.POSIXct(x, tz=Sys.timezone(), format="%Y-%m-%d_%H:%M:%OS")
[1] "2007-02-01 10:10:30 EST"


> On Nov 26, 2024, at 19:53, Sorkin, John <jsorkin using som.umaryland.edu> wrote:
> 
> x <- "2007-02-01_10:10:30"
> x <- as.POSIXct(x,tz=Sys.timezone())



More information about the R-help mailing list