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 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