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

Support parsing tz abbreviations #564

Closed
siler opened this issue Apr 2, 2023 · 1 comment
Closed

Support parsing tz abbreviations #564

siler opened this issue Apr 2, 2023 · 1 comment
Labels
C-duplicate Category: exact duplicate

Comments

@siler
Copy link

siler commented Apr 2, 2023

Hello,

I was updating time from version 0.1 in one of my projects and was trying to parse a timestamp with format_description! and couldn't find a way to parse tz abbreviations. This was available in previous versions of time via strftime flag %Z.

Thank you for maintaining this library.

@siler siler closed this as not planned Won't fix, can't repro, duplicate, stale Apr 2, 2023
@jhpratt
Copy link
Member

jhpratt commented Apr 2, 2023

Since you've closed the issue I presume you realized this, but for clarity, time 0.1 didn't really support it. The only thing that was parsed was "UTC" (or "GMT"; I can't remember), with everything else being a no-op.

Real support for formatting and parsing would be included as part of the tzdb implementation in #193. Keep in mind that even then, many abbreviations are ambiguous — "CST" could be US central time, Mexico central time, China standard time, etc.

@jhpratt jhpratt added the C-duplicate Category: exact duplicate label Apr 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-duplicate Category: exact duplicate
Projects
None yet
Development

No branches or pull requests

2 participants