rok commented on PR #12154:
URL: https://github.com/apache/arrow/pull/12154#issuecomment-1169618227
> Another bug report for you @rok, sorry 😢
No worries! I was hoping this PR would surface issues with the C++
implementations if any :).
Does this look right as a test set?
```
library('lubridate')
ts <- c("1970-01-01T00:00:59.123456789","2000-02-29T23:23:23.999999999",
"1899-01-01T00:59:20.001001001","2033-05-18T03:33:20.000000000",
"2020-01-01T01:05:05.001", "2019-12-31T02:10:10.002",
"2019-12-30T03:15:15.003", "2009-12-31T04:20:20.004132",
"2010-01-01T05:25:25.005321", "2010-01-03T06:30:30.006163",
"2010-01-04T07:35:35", "2006-01-01T08:40:40",
"2005-12-31T09:45:45",
"2008-12-28T00:00:00", "2008-12-29T00:00:00", "2012-01-01
01:02:03")
x <- ymd_hms(ts, tz = "Australia/Sydney")
with_tz(floor_date(x, unit="15month"), "UTC")
[1] "1969-12-31 14:00:00 UTC" "1999-12-31 13:00:00 UTC"
[3] "1898-12-31 14:00:00 UTC" "2032-12-31 13:00:00 UTC"
[5] "2019-12-31 13:00:00 UTC" "2018-12-31 13:00:00 UTC"
[7] "2018-12-31 13:00:00 UTC" "2008-12-31 13:00:00 UTC"
[9] "2009-12-31 13:00:00 UTC" "2009-12-31 13:00:00 UTC"
[11] "2009-12-31 13:00:00 UTC" "2005-12-31 13:00:00 UTC"
[13] "2004-12-31 13:00:00 UTC" "2007-12-31 13:00:00 UTC"
[15] "2007-12-31 13:00:00 UTC" "2011-12-31 13:00:00 UTC"
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]