Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upVectorised force_tz() #438
Comments
|
Why is this needed? If you know your groups you can map by groups yourself. This would go against all other functions which don't vectorize over TZ and will give wrong hints to folks who ask multiple tzs within a vector. |
|
Obviously I can do that, but it's pretty tough challenge for most people. It's a not uncommon to have a vector of local times that you need to fix. I think it's reasonable to vectorise |
|
This one is likely to be challenging. The update code is already quite complex as it tries to cut edges whenever possible. |
|
Can this become a feature request? |
|
I am looking at this right now. Trying to put CCTZ to do some work here. |
|
Folks, vectorized |
|
I think what I actually want is more like |
|
I see, that could be straightforwardly done with CCTZ. Will look into it. We need |
|
Here's a stack overflow questions detailing the precise problem and why a solution of some kind would be useful: https://stackoverflow.com/questions/33848563/with-tz-with-a-vector-of-timezones/33848764 |
|
Just added two functions, @gregmacfarlane, the SO questions looks for vectorized |
At a minimum, this should be an error:
But ideally, it would allow you to combine a vector of times with a vector of times, as when a dataset records local times and you want to standardise.