Open eddelbuettel opened 2 months ago
Thanks for the comments!
The dplyr::coalesce() call forces the Date output to be shown as POSIXct
I only used the coalesce call for its ability to replace missing values to show what anytime
parses and what not. I didn't pay attention to the output format. But I am gonna change that.
The benchmark comparison 'smells wrong'.
I also do not trust the benchmark entirely. The date(time) I use to benchmark (see the data-raw folder, it is not bench_dates
) are randomly generated by chatgpt. I could not spot any bias in the dataset so far
The 'one cannot parse all forms of the other' goes both ways
This one is weird. I am sure that those formats were working. In anycase, they should now.
Similarly, when we use this for benchmarks things are an order of magnitude closer:
Need to figure out what happens here. I guess I need better benchmark datasets.
Thanks again for the comments. I think even if timeless
might be a bit faster than anytime
(for whatever reason) it is more robust abd better suited for "production"
Thanks for the package, and for putting a comparison section in. A few things struck me as oddball, though:
dplyr::coalesce() call forces the
Dateoutput to be shown as POSIXct, but that is not what is produced; maybe switch that to
data.frame()` instead to allow two different column types on output given two different inputs?bench_dates
that upsetsanytime
, or maybe the error throwing is expensive?times
in anytime and for that we getSimilarly, when we use this for benchmarks things are an order of magnitude closer:
Lastly,
anytime
also parses subseconds,chronos
does not. (Can you make it?) So it's a wee bit apples versus oranges.But choice is good so thanks for putting this one together.