DATEPARSE(1)
π NAME π
okay bestie, meet dateparse β it's literally a frontend to DateTime::Format::Natural π like, it's the glow-up little wrapper that takes your messy lil human date strings and makes them make sense.
β¨ SYNOPSIS β¨
the whole vibe, exactly as it comes:
Usage: dateparse [switches]
-d, --datetime=<string> datetime string *
-e, --extract extract expressions
-f, --format=<format> format of numeric dates
-h, --help this help screen
-l, --lang=<code> language code
-p, --prefer_future prefer future dates
-P, --demand_future demand future dates
-s, --supported list of supported languages
-t, --time_zone=<string> time zone string
-T, --trace print trace after processing
-V, --version print version
and now the switches one by one, no skips, no cap π
-d,--datetime=<string>β the actual datetime string you're feeding in. this is the one with the little asterisk next to it, so yes, it matters π-e,--extractβ pulls out the expressions. extraction mode, slay π§-f,--format=<format>β tells it what format your numeric dates are in π’-h,--helpβ the help screen, aka your bestie when you're lost π«Ά-l,--lang=<code>β sets the language code, so it can read your dates in your language π-p,--prefer_futureβ when it's ambiguous, it'll prefer future dates. gentle suggestion energy π-P,--demand_futureβ and this one demands future dates. uppercase P for uppercase personality, it's giving firm π-s,--supportedβ prints the list of supported languages π-t,--time_zone=<string>β the time zone string, for when you're not in the default timeline π°οΈ-T,--traceβ prints a trace after processing, so you can see the whole journey π-V,--versionβ prints the version, iconic β
β οΈ okay so the asterisk footnote, listen up bestie: the date must conform toYYYY-MM-DDand the time tohh:mm:ss(.ms). no freestyling. and valid datetime strings consist of either date, date/time or time. that's the whole menu, periodt π
πΈ AUTHOR πΈ
Steven Schubiger <schubiger@cpan.org> β the icon who made this happen π
π¦ LICENSE π¦
this program is free software; you may redistribute it and/or modify it under the same terms as Perl itself. fr fr, go wild π
See <http://dev.perl.org/licenses/>
and that's the whole page, bestie π this was perl v5.42.0, dated 2026-02-16, and it lives in the User Contributed Perl Documentation section as DATEPARSE(1). go forth and parse those dates, main character π
π¦ where this page comes from
- fedora 44: perl-DateTime-Format-Natural 1.25-1.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms