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 to YYYY-MM-DD and the time to hh: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