We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
But you can convert a day precision naive-time, because it goes through zoned-time first and gets common typed up to second precision
library(clock) nt <- as_naive_time(year_month_day(2019, 1, 1)) st <- as_sys_time(year_month_day(2019, 1, 1)) as.POSIXct(nt, "UTC") #> [1] "2019-01-01 UTC" as.POSIXct(st, "UTC") #> Error: Can't floor to a more precise precision.
Created on 2021-12-21 by the reprex package (v2.0.1)
So it probably needs the same x <- vec_cast(x, vec_ptype2(x, naive_seconds())) trick that as_zoned_time.clock_naive_time() uses
x <- vec_cast(x, vec_ptype2(x, naive_seconds()))
as_zoned_time.clock_naive_time()
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
But you can convert a day precision naive-time, because it goes through zoned-time first and gets common typed up to second precision
Created on 2021-12-21 by the reprex package (v2.0.1)
So it probably needs the same
x <- vec_cast(x, vec_ptype2(x, naive_seconds()))
trick thatas_zoned_time.clock_naive_time()
usesThe text was updated successfully, but these errors were encountered: