-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-22049][DOCS] Confusing behavior of from_utc_timestamp and to_utc_timestamp #19276
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
Conversation
|
CC @HyukjinKwon as I think we talked about this a long time ago |
|
Test build #81918 has finished for PR 19276 at commit
|
|
Test build #81919 has finished for PR 19276 at commit
|
R/pkg/R/functions.R
Outdated
| #' @details | ||
| #' \code{from_utc_timestamp}: Given a timestamp, which corresponds to a certain time of day in UTC, | ||
| #' returns another timestamp that corresponds to the same time of day in the given timezone. | ||
| #' \code{from_utc_timestamp}: Given a timestamp like '2017-07-14 02:40:00.0', interprets it as a time in UTC, and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think lintr does not recognise this case but I believe these lines should fit in 100 character lengths ..
|
LGTM |
|
Test build #81920 has finished for PR 19276 at commit
|
R/pkg/R/functions.R
Outdated
| #' \code{from_utc_timestamp}: Given a timestamp, which corresponds to a certain time of day in UTC, | ||
| #' returns another timestamp that corresponds to the same time of day in the given timezone. | ||
| #' \code{from_utc_timestamp}: Given a timestamp like '2017-07-14 02:40:00.0', interprets it as a time in UTC, and | ||
| # renders that time as a timestamp in the given time zone. For example, 'GMT+1' would yield '2017-07-14 03:40:00.0'. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, and missing #' at the beginning.
R/pkg/R/functions.R
Outdated
| #' \code{to_utc_timestamp}: Given a timestamp, which corresponds to a certain time of day | ||
| #' in the given timezone, returns another timestamp that corresponds to the same time of day in UTC. | ||
| #' \code{to_utc_timestamp}: Given a timestamp like '2017-07-14 02:40:00.0', interprets it as a time in the given | ||
| # time zone, and renders that time as a timestamp in UTC. For example, 'GMT+1' would yield '2017-07-14 01:40:00.0'. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here with # -> #'
|
Test build #81983 has finished for PR 19276 at commit
|
|
Merged to master. |
What changes were proposed in this pull request?
Clarify behavior of to_utc_timestamp/from_utc_timestamp with an example
How was this patch tested?
Doc only change / existing tests