Skip to content

Conversation

@ChristopherRabotin
Copy link
Member

The docstring for the Python binding of Epoch.strftime previously claimed equivalence with Python's datetime.strftime. This is not entirely accurate, as hifitime supports a subset of C89-style format codes along with some hifitime-specific ones, but does not implement all of Python's directives (e.g., %W, %U, %G, %V, locale-specific formats).

This commit updates the docstrings in src/epoch/python.rs and hifitime.pyi to more accurately describe the supported formatting capabilities and directs you to the hifitime documentation for the list of available format codes.

Fixes #384.

google-labs-jules bot and others added 3 commits May 31, 2025 20:04
The docstring for the Python binding of `Epoch.strftime` previously claimed equivalence with Python's `datetime.strftime`. This is not entirely accurate, as `hifitime` supports a subset of C89-style format codes along with some hifitime-specific ones, but does not implement all of Python's directives (e.g., %W, %U, %G, %V, locale-specific formats).

This commit updates the docstrings in `src/epoch/python.rs` and `hifitime.pyi` to more accurately describe the supported formatting capabilities and directs you to the hifitime documentation for the list of available format codes.

Addresses issue #384.
@ChristopherRabotin ChristopherRabotin merged commit a96082d into master May 31, 2025
27 checks passed
@ChristopherRabotin ChristopherRabotin deleted the fix-strftime-docstring branch May 31, 2025 20:35
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

Successfully merging this pull request may close these issues.

Missing format directives in strftime for python

1 participant