DateTi...ng::en(3pm)
โจ NAME โจ
ok so this is DateTime::Format::Flexible::lang::en โ the english language plugin ๐
she's the one who speaks English for DateTime::Format::Flexible and she eats every single time ๐ฌ๐งโจ
๐ธ DESCRIPTION ๐ธ
bestie. listen. you should not need to use this module directly. she's a backstage queen, not a main character module. let her do her job in the background, okay?
if you only wanna use one language, just say so with the lang property when you're parsing a date. like:
my $dt = DateTime::Format::Flexible->parse_datetime(
'Wed, Jun 10, 2009' ,
lang => ['en']
);
# $dt is now 2009-06-10T00:00:00
but ngl? that's not required. by default ALL languages are scanned when it's trying to parse a date. she's thorough like that ๐
๐ new
instantiates a new instance of this module. new module, who dis โจ
๐ฆ months
month name regular expressions along with the month numbers, iykyk:
Jan(?:uary)? => 1
๐ days
day name regular expressions along the the day numbers:
Mon(?:day)? => 1
โญ day_numbers
maps day of month names to the corresponding numbers, so first => 01 ๐ฅ
๐ hours
maps hour names to numbers, like noon => 12:00:00 ๐ iconic behaviour
๐ remove_strings
strings to remove from the date โ rd as in 3rd. she's just tidying up, no biggie ๐งน
๐ง parse_time
searches for the string 'at' to help determine a time substring, as in sunday at 3:00 โฐ the way she just finds the atโฆ obsessed
๐ string_dates
maps string names to real dates: now => DateTime->now โจ
๐ relative
parses relative dates โ ago => ago, from => from now, next => next, last => last. time is a construct and she's fluent in it ๐ฐ๏ธ
๐ฅ math_strings
useful strings when doing datetime math. numbers? math? she said say less ๐งฎ
๐ timezone_map
maps unofficial timezones to official timezones for this language โ CST => America/Chicago ๐ no more timezone chaos, periodt
๐ AUTHOR ๐
Tom Heady
CPAN ID: thinc
Punch, Inc.
cpan@punch.net
http://www.punch.net/
๐ COPYRIGHT & LICENSE ๐
Copyright 2011 Tom Heady.
This program is free software; you can redistribute it and/or modify it under the terms of either:
- the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or
- the Artistic License.
two license options?? she's flexible in every way, not just with dates ๐ญโจ
๐ซถ SEE ALSO ๐ซถ
DateTime::Format::Flexibleโ the parent, the blueprint, the moment ๐ซ
and that's the whole page bestie, no cap ๐
this was DateTi...ng::en(3pm) from the User Contributed Perl Documentation collection, running on perl v5.40.0, dated 2025-01-11. go forth and parse dates, you absolute icon ๐๐ฆ๐
๐ฆ where this page comes from
- debian trixie: libdatetime-format-flexible-perl 0.37-1 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libdatetime-format-flexible-perl 0.37-1 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libdatetime-format-flexible-perl 0.37-1 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms