ropensci / charlatan

Create fake data in R
https://docs.ropensci.org/charlatan/
Other
295 stars 28 forks source link

DateTimeProvider: add fuzzy parser to allow all sorts of date formats #107

Open sckott opened 5 years ago

sckott commented 5 years ago
sckott commented 5 years ago

gabor suggested calling as.POSIXlt on the result https://github.com/gaborcsardi/parsedate/issues/25

as.POSIXlt(parsedate::parse_date("January 4, 1981 15:00:00"), tz="UTC")
#> [1] "1981-01-04 15:00:00 UTC"

seems to do the job. will investigate further.

also do performance comparisons