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 upextend checks for UTC inputs for robustness #4117
Conversation
|
Really dunno why we're getting this on Travis, not able to reproduce:
That snippet comes from |
Codecov Report
@@ Coverage Diff @@
## master #4117 +/- ##
=========================================
+ Coverage 99.4% 99.4% +<.01%
=========================================
Files 72 72
Lines 13685 13686 +1
=========================================
+ Hits 13604 13605 +1
Misses 81 81
Continue to review full report at Codecov.
|
|
I find this PR very strange in that the initial commit didn't work on Travis and the current commit does. any ideas? |
|
difference in code is
vs
I can't see how in the first one |
| # check UTC status | ||
| is_utc = function(tz) { | ||
| # via grep('UTC|GMT', OlsonNames(), value = TRUE) | ||
| utc_tz = c("Etc/GMT", "Etc/UTC", "GMT", "GMT-0", "GMT+0", "GMT0", "UTC") |
MichaelChirico
Dec 16, 2019
Author
Member
I sorted this alphabetically... perhaps we should sort it by expected frequency instead? Does %chin% have a short-out to return once the first match is found?
I sorted this alphabetically... perhaps we should sort it by expected frequency instead? Does %chin% have a short-out to return once the first match is found?
mattdowle
Dec 17, 2019
•
Member
No. Good idea. If its LHS is length 1, then it should just loop through the RHS and stop early if and when it is found. Will do. (Btw, sorting the input was good thought but doesn't make any difference as it's an order-n two-pass approach using the now-well- established truelength clobber technique.)
No. Good idea. If its LHS is length 1, then it should just loop through the RHS and stop early if and when it is found. Will do. (Btw, sorting the input was good thought but doesn't make any difference as it's an order-n two-pass approach using the now-well- established truelength clobber technique.)
mattdowle
Dec 17, 2019
•
Member
When %chin% does short-circuit as you suggested, then yes this input should be sorted by expected frequency. Good idea.
When %chin% does short-circuit as you suggested, then yes this input should be sorted by expected frequency. Good idea.
…s item, one tz= not needed
Closes #4116
You can confirm all these timezones are the same like: