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

Ability to use a different timezone? #23

Open
ashishb opened this issue Jan 24, 2020 · 4 comments
Open

Ability to use a different timezone? #23

ashishb opened this issue Jan 24, 2020 · 4 comments

Comments

@ashishb
Copy link

ashishb commented Jan 24, 2020

I couldn't see to find any timezone parsing code. So, for example, if I am saying "10 PM EST" while the machine's local time is in PST then I expect 7 PM as the outcome in local time or 10 PM with the timezone information extracted.

@olebedev
Copy link
Owner

It's supposed that you already know or parse a timezone and give a time.Time instance with already set up timezone in it.

@ashishb
Copy link
Author

ashishb commented Jan 24, 2020

I want to extract it from the free-form text.

@ShadiestGoat
Copy link

I think this issue should be re-opened. It should be able to parse "7pm PST" and "7pm UTC" differently.

Thank you!

@olebedev
Copy link
Owner

Yeah, it seems like a useful feature to have in the library. I think it can be relatively easy implemented as a rule, that parses only timezones if any and adjust the result accordingly.

I open the issue to keep it visible. It would be really cool if someone can spend a couple of hours implementing the rule :) I will be happy to review and merge when its ready to.

@olebedev olebedev reopened this Apr 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants