Skip to content

feat: support boost C++ timestamp format#53

Merged
atoomic merged 1 commit intocpan-authors:mainfrom
Koan-Bot:koan.atoomic/migrate-pr6-boost-timestamp
Feb 26, 2026
Merged

feat: support boost C++ timestamp format#53
atoomic merged 1 commit intocpan-authors:mainfrom
Koan-Bot:koan.atoomic/migrate-pr6-boost-timestamp

Conversation

@Koan-Bot
Copy link
Copy Markdown

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), which Date::Parse couldn't handle.

Changes

  • lib/Date/Parse.pm: New regex to match %Y-%b-%d format with month name lookup
  • t/date.t: Test cases for abbreviated and full month name formats

🤖 Migrated by Kōan from gbarr#6

@atoomic atoomic marked this pull request as ready for review February 26, 2026 05:32
@atoomic atoomic self-assigned this Feb 26, 2026
@atoomic
Copy link
Copy Markdown
Collaborator

atoomic commented Feb 26, 2026

@Koan-Bot rebase

@krya-kryak
Copy link
Copy Markdown

originally submitted 2014-01-21 by @krya-kryak

Blast from the past :)

@atoomic
Copy link
Copy Markdown
Collaborator

atoomic commented Feb 26, 2026

@krya-kryak indeed, trying to dequeue all these issues / improvements and get a release in the coming days

@Koan-Bot
Copy link
Copy Markdown
Author

Rebase: feat: support boost C++ timestamp format

Branch koan.atoomic/migrate-pr6-boost-timestamp has been rebased onto main and force-pushed.

Actions

  • Read PR comments and review feedback
  • Rebased koan.atoomic/migrate-pr6-boost-timestamp onto origin/main
  • Force-pushed koan.atoomic/migrate-pr6-boost-timestamp to origin

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>
@Koan-Bot Koan-Bot force-pushed the koan.atoomic/migrate-pr6-boost-timestamp branch from f6e49d6 to 0cb0337 Compare February 26, 2026 17:42
@atoomic atoomic merged commit 9779f3a into cpan-authors:main Feb 26, 2026
22 checks passed
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.

3 participants