Skip to content

Conversation

@pganssle
Copy link
Member

@pganssle pganssle commented Jun 5, 2018

This is an example implementation of generic fold support in datetime.fromutc, for purposes of discussion. The idea here is that so long as utcoffset - dst is constant (as is the fundamental assumption of the current fromutc implementation) and the utcoffset and dst implementations respect the fold parameter, this will always set the fold parameter correctly in fromutc.

This needs more extensive tests and a pure Python implementation (plus I don't think I was amazingly careful about the reference counts), but the overall outline is there. It's basically a port of the current base dateutil implementation.

See GH-72788.

https://bugs.python.org/issue28602

@github-actions
Copy link

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale Stale PR or inactive for long period of time. label Sep 21, 2024
@python-cla-bot
Copy link

python-cla-bot bot commented Apr 6, 2025

The following commit authors need to sign the Contributor License Agreement:

CLA signed

@github-actions github-actions bot removed the stale Stale PR or inactive for long period of time. label Apr 9, 2025
@github-actions
Copy link

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale Stale PR or inactive for long period of time. label May 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review DO-NOT-MERGE stale Stale PR or inactive for long period of time.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants