Skip to content
New issue

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

[[ method for nanotime #44

Closed
romainfrancois opened this issue May 23, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@romainfrancois
Copy link

commented May 23, 2019

[[ is not defined for nanotime:

library(nanotime)

times <- c(nanotime('2011-12-05 08:30:00.000',format ="%Y-%m-%d %H:%M:%E9S",  tz ="GMT"),
  nanotime('2011-12-05 08:30:00.100',format ="%Y-%m-%d %H:%M:%E9S",  tz ="GMT"),
  nanotime('2011-12-05 08:30:00.825',format ="%Y-%m-%d %H:%M:%E9S",  tz ="GMT"))

times[1]
#> [1] "2011-12-05T08:30:00.000000000+00:00"
times[[1]]
#> integer64
#> [1] 1323073800000000000

related to tidyverse/dplyr#4381

@eddelbuettel

This comment has been minimized.

Copy link
Owner

commented May 23, 2019

Seems so. I guess we haven't needed it as those are mostly just used as / seen as vectors.

Anyway, see #45.

eddelbuettel added a commit that referenced this issue May 25, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.