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

Implement with_timezone function #5905

Open
waitingkuo opened this issue Apr 7, 2023 · 0 comments
Open

Implement with_timezone function #5905

waitingkuo opened this issue Apr 7, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@waitingkuo
Copy link
Contributor

Is your feature request related to a problem or challenge?

per discussion in apache/arrow-rs#1936 (comment)
casting now consider timezone

i'd like a new function with_timezone that could simply change the timezone in datatype without changing any underline value

Describe the solution you'd like

implement a new function with_timezone(Timestamp, 'Some-TimeZone')

e.g.
with_timezone(timestamp '2000-01-01T00:00:00', '+08:00') becomes 2000-01-01T08:00:00+08:00
with_timezone(with_timezone(timestamp '2000-01-01T00:00:00', '+08:00'), '+07:00') becomes 2000-01-01T07:00:00+07:00

Describe alternatives you've considered

No response

Additional context

No response

@waitingkuo waitingkuo added the enhancement New feature or request label Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant