This repository has been archived by the owner on Jun 24, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix strptime for %Y%m%d and similar formats (Fixes #9)
Previously, strptime grabbed an arbitrary number of digits for the %Y and %G formats. Now it operates like the standard library, checking to see if %Y or %G is followed by a numeric literal or format, and restricting the number of digits to 4 if so.
- Loading branch information
1 parent
9ac21b1
commit 44ef76e
Showing
2 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters