question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide AT ZONE-equivalent functions where zone name is not constant

See original GitHub issue

~make at_timezone it public (see @dain 's https://github.com/prestodb/presto/issues/5162#issuecomment-434127569) and add documentation~

This is required to perform AT TIME ZONE conversion when zone is not a constant

See https://github.com/prestosql/presto/issues/135#issuecomment-466559709 comment below for what should be implemented in this issue.

Ref https://github.com/prestodb/presto/issues/5162

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:23 (21 by maintainers)

github_iconTop GitHub Comments

2reactions
daincommented, Feb 2, 2019

There are a bunch of references to this function in stackoverflow, so at the very least we would need to deprecate the old name.

1reaction
findepicommented, Feb 22, 2019

Summing up:

what we (possibly?) need are these behaviors:

  1. Make a TIMESTAMP WITH TIME ZONE from a TIMESTAMP and a timezone. function(ts::TIMESTAMP, timezone::VARCHAR) :: TIMESTAMP WITH TIME ZONE
  2. Change the timezone component of a TIMESTAMP WITH TIME ZONE while preserving the instant in time. function(ts:TIMESTAMP WITH TIME ZONE, target_timezone::VARCHAR) :: TIMESTAMP WITH TIME ZONE
  3. Change the timezone offset associated with a TIMESTAMP WITH TIMEZONE while preserving the local timestamp. function(ts:TIMESTAMP WITH TIME ZONE, target_timezone::VARCHAR) :: TIMESTAMP WITH TIME ZONE
  • with_timezone for (1)
  • at_timezone for (2)
  • currently no function for (3)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Provide AT ZONE-equivalent functions where zone name is ...
Provide AT ZONE-equivalent functions where zone name is not constant #135 ... to perform AT TIME ZONE conversion when zone is not a...
Read more >
A beginner's guide to Java time zone handling - Vlad Mihalcea
Learn how Java handles time zone information for Date, Timestamp, Calendar, or Joda DateTime when parsing the timestamps from String.
Read more >
How to keep time zone constant for a given date using ...
I want to convert below date in EST Time zone. Currently it is picking up my system time zone which is PST resulting...
Read more >
Functional zonation of the rat adrenal cortex - NCBI - NIH
The adrenal cortex of mammals consists of three concentric zones, i.e., the zona glomerulosa (zG), the zona fasciculata (zF), and the zona reticularis...
Read more >
FAA JO Order 7110.65W, Air Traffic Control
facilities providing ATC services using ADS-B and ... centerline of the runway at an angle not greater than ... DUTIES AND RESPONSIBIL-.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found