forked from joshuaulrich/xts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only support hours without zero-padding
Remove support for non-zero-padded minutes and seconds. The ISO 8601 standard requires all time components be zero-padded. That said, we do support hours that aren't zero-padded, for convenience. Also make the validation regex stricter. The first digit for minutes and seconds cannot be > 5. Separate regex into multiple pieces, to make them easier to understand later. See joshuaulrich#326. See joshuaulrich#327.
- Loading branch information
1 parent
da44bca
commit 097c718
Showing
2 changed files
with
17 additions
and
8 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