DateTime::Format::Builder::Parser::Strptime - strptime based date parsing
| Use Case | Command | Description |
|---|---|---|
| Create parser with strptime pattern | my $parser = DateTime::Format::Builder->create_parser(strptime => '%Y-%m-%d %H:%M:%S') | Define date format using strptime tokens |
| Parse a date string | $dt = $parser->parse_datetime('2025-03-15 14:30:00') | Parse a string into a DateTime object |
| Include timezone offset in pattern | strptime => '%Y-%m-%dT%H:%M:%S%z' | Use %z for timezone offset like +0530 |
version 0.83
my $parser = DateTime::Format::Builder->create_parser(
strptime => '%e/%b/%Y:%H:%M:%S %z',
);
strptime â takes as its argument a strptime string. See DateTime::Format::Strptime for more information on valid patterns.đ Bugs may be submitted at https://github.com/houseabsolute/DateTime-Format-Builder/issues.
đŦ I am also usually active on IRC as 'autarch' on irc://irc.perl.org.
đĻ The source code repository for DateTime-Format-Builder can be found at https://github.com/houseabsolute/DateTime-Format-Builder.
This software is Copyright (c) 2020 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
The full text of the license can be found in the LICENSE file included with this distribution.
Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-06 18:46 @216.73.216.139
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format