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

Add support for zzzz (and beyond) in format_datetime #11330

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

kevinwilfong
Copy link
Contributor

Summary:
This diff adds support for JODA's zzzz (or more) patterns (all equivalent) in Presto's
forma_datetime function.

This is used to format long time zone names.

Long time zone names are not available from the IANA time zone database, so we
can't use the tz library to generate these. Fortunately, unicode provides some
utilities to generate these.

Differential Revision: D64795407

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 22, 2024
Copy link

netlify bot commented Oct 22, 2024

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 746eaa6
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/671c3a01bf9e9f000823bfc4

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64795407

kevinwilfong pushed a commit to kevinwilfong/velox that referenced this pull request Oct 24, 2024
…or#11330)

Summary:
Pull Request resolved: facebookincubator#11330

This diff adds support for JODA's zzzz (or more) patterns (all equivalent) in Presto's
forma_datetime function.

This is used to format long time zone names.

Long time zone names are not available from the IANA time zone database, so we
can't use the tz library to generate these.  Fortunately, unicode provides some
utilities to generate these.

Differential Revision: D64795407
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64795407

Kevin Wilfong and others added 2 commits October 24, 2024 14:31
…or#11283)

Summary:
Pull Request resolved: facebookincubator#11283

The format_datetime currently outptus the time zone id if for 3 or fewer 'z' characters
in the format string.  However, the JODA library, which this is based on, does this for
3 or more 'Z' characters.

https://www.joda.org/joda-time/apidocs/org/joda/time/format/DateTimeFormat.html

This diff fixes this, as well as adds support for a single 'Z' (which outputs the same
thing as 'ZZ' just without the colon).  So 'Z' is fully supported for any number of
characters.

Differential Revision: D64500193
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64795407

kevinwilfong pushed a commit to kevinwilfong/velox that referenced this pull request Oct 24, 2024
…or#11330)

Summary:
Pull Request resolved: facebookincubator#11330

This diff adds support for JODA's zzzz (or more) patterns (all equivalent) in Presto's
forma_datetime function.

This is used to format long time zone names.

Long time zone names are not available from the IANA time zone database, so we
can't use the tz library to generate these.  Fortunately, unicode provides some
utilities to generate these.

Differential Revision: D64795407
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64795407

kevinwilfong pushed a commit to kevinwilfong/velox that referenced this pull request Oct 24, 2024
…or#11330)

Summary:
Pull Request resolved: facebookincubator#11330

This diff adds support for JODA's zzzz (or more) patterns (all equivalent) in Presto's
forma_datetime function.

This is used to format long time zone names.

Long time zone names are not available from the IANA time zone database, so we
can't use the tz library to generate these.  Fortunately, unicode provides some
utilities to generate these.

Differential Revision: D64795407
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64795407

kevinwilfong pushed a commit to kevinwilfong/velox that referenced this pull request Oct 24, 2024
…or#11330)

Summary:
Pull Request resolved: facebookincubator#11330

This diff adds support for JODA's zzzz (or more) patterns (all equivalent) in Presto's
forma_datetime function.

This is used to format long time zone names.

Long time zone names are not available from the IANA time zone database, so we
can't use the tz library to generate these.  Fortunately, unicode provides some
utilities to generate these.

Differential Revision: D64795407
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64795407

kevinwilfong pushed a commit to kevinwilfong/velox that referenced this pull request Oct 24, 2024
…or#11330)

Summary:
Pull Request resolved: facebookincubator#11330

This diff adds support for JODA's zzzz (or more) patterns (all equivalent) in Presto's
forma_datetime function.

This is used to format long time zone names.

Long time zone names are not available from the IANA time zone database, so we
can't use the tz library to generate these.  Fortunately, unicode provides some
utilities to generate these.

Differential Revision: D64795407
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64795407

kevinwilfong pushed a commit to kevinwilfong/velox that referenced this pull request Oct 25, 2024
…or#11330)

Summary:
Pull Request resolved: facebookincubator#11330

This diff adds support for JODA's zzzz (or more) patterns (all equivalent) in Presto's
forma_datetime function.

This is used to format long time zone names.

Long time zone names are not available from the IANA time zone database, so we
can't use the tz library to generate these.  Fortunately, unicode provides some
utilities to generate these.

Differential Revision: D64795407
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64795407

kevinwilfong pushed a commit to kevinwilfong/velox that referenced this pull request Oct 25, 2024
…or#11330)

Summary:
Pull Request resolved: facebookincubator#11330

This diff adds support for JODA's zzzz (or more) patterns (all equivalent) in Presto's
forma_datetime function.

This is used to format long time zone names.

Long time zone names are not available from the IANA time zone database, so we
can't use the tz library to generate these.  Fortunately, unicode provides some
utilities to generate these.

Differential Revision: D64795407
kevinwilfong pushed a commit to kevinwilfong/velox that referenced this pull request Oct 26, 2024
…or#11330)

Summary:
Pull Request resolved: facebookincubator#11330

This diff adds support for JODA's zzzz (or more) patterns (all equivalent) in Presto's
forma_datetime function.

This is used to format long time zone names.

Long time zone names are not available from the IANA time zone database, so we
can't use the tz library to generate these.  Fortunately, unicode provides some
utilities to generate these.

Differential Revision: D64795407
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64795407

…or#11330)

Summary:
Pull Request resolved: facebookincubator#11330

This diff adds support for JODA's zzzz (or more) patterns (all equivalent) in Presto's
forma_datetime function.

This is used to format long time zone names.

Long time zone names are not available from the IANA time zone database, so we
can't use the tz library to generate these.  Fortunately, unicode provides some
utilities to generate these.

Differential Revision: D64795407
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64795407

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants