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

Added Time parsing to pendulum_dt #288

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Woody1193
Copy link
Contributor

This PR adds support for the pendulum.Time object to the library. Note that this change was obnoxious to implement because pendulum does not parse time values uniformly. As an example, when calling pendulum.instance on a datetime.time object, no time zone is inserted unless it is explicitly added to the datetime.time object. However, if pendulum.Time.instance is called with a datetime.time object, then the timezone will be inferred to be UTC unless it is provided. Additionally, when parsing a string, timezones are ignored regardless of how the parsing is done.

Copy link
Collaborator

@yezz123 yezz123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @Woody1193 can you please run pre-commit locally and also don't edit uv.lock manually you can use make rebuild-lockfiles

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants