[R] Convert character date time to R date-time variable.

Dirk Eddelbuettel edd @end|ng |rom deb|@n@org
Thu Dec 7 17:59:20 CET 2023


`anytime` was written for this:

  > anytime::anytime("2020-09-17_00:00:00")
  [1] "2020-09-17 CDT"
  > class(anytime::anytime("2020-09-17_00:00:00"))
  [1] "POSIXct" "POSIXt" 
  > 

Dirk


-- 
dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org



More information about the R-help mailing list