You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/02/07 16:27:55 UTC

[GitHub] [arrow] dragosmg edited a comment on pull request #12357: ARROW-14817 [R] Implement bindings for lubridate::tz

dragosmg edited a comment on pull request #12357:
URL: https://github.com/apache/arrow/pull/12357#issuecomment-1031661846


   `lubridate::tz()` supports a bunch of types of inputs, for example character:
   ``` r
   suppressMessages(library(lubridate))
   suppressMessages(library(dplyr))
   tibble(
     a = "2022-02-07"
   ) %>% 
     mutate(timezone = tz(a))
   #> # A tibble: 1 × 2
   #>   a          timezone
   #>   <chr>      <chr>   
   #> 1 2022-02-07 UTC
   ```
   
   <sup>Created on 2022-02-07 by the [reprex package](https://reprex.tidyverse.org) (v2.0.1)</sup>
   
   Not sure we want to support all of them. Albeit, it defaults to `"UTC"` when extracting the timezone from a character.


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org