Skip to content

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

@Woody1193
Copy link
Contributor Author

Sorry, I don't have the time to continue on this one. If someone else is willing to pick this up, I'd certainly appreciate it, but the project we were using this for is moving away from Python so we can't really justify additional effort right now.

@yezz123
Copy link
Collaborator

yezz123 commented Aug 8, 2025

close this in favor of this #331

@yezz123 yezz123 closed this Aug 8, 2025
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