feat: support boost C++ timestamp format#53
Merged
atoomic merged 1 commit intocpan-authors:mainfrom Feb 26, 2026
Merged
Conversation
atoomic
approved these changes
Feb 26, 2026
Collaborator
|
@Koan-Bot rebase |
Blast from the past :) |
Collaborator
|
@krya-kryak indeed, trying to dequeue all these issues / improvements and get a release in the coming days |
Author
Rebase: feat: support boost C++ timestamp formatBranch Actions
Automated by Kōan |
Add parsing support for the default C++ Boost timestamp format (e.g., "2002-Jul-22 10:00:00.000000"). This uses month name instead of month number in the date portion. Adds test cases for both abbreviated and full month names. Originally submitted as gbarr#6 by @krya-kryak Co-Authored-By: Vladimir Kononov <pono@yandex-team.ru>
f6e49d6 to
0cb0337
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Add parsing support for the default C++ Boost timestamp format (
%Y-%b-%d %H:%M:%S.%f).Why
Migrated from gbarr/perl-TimeDate#6 (originally submitted 2014-01-21 by @krya-kryak). Boost uses month names instead of numbers in timestamps (e.g.,
2002-Jul-22 10:00:00.000000), whichDate::Parsecouldn't handle.Changes
lib/Date/Parse.pm: New regex to match%Y-%b-%dformat with month name lookupt/date.t: Test cases for abbreviated and full month name formats🤖 Migrated by Kōan from gbarr#6