• Shaarli
  • Tag cloud
  • Picture wall
  • Daily
  • RSS
  • Login
4251 shaares
Filters

Announcing Date::Parse::Modern

QRCode

I'm a big fan of PHP's strtotime() so I wanted that same functionality in Perl. If you have a date/time string and need a unixtime, then strtotime() is the way to go.

I just released the first public version of Date::Parse::Modern, which is a modern replacement for Date::Parse. Not only does it support more formats than Date::Parse, it's also significantly faster.

In a perfect world this functionality (strtotime) should be in Time::Piece. It's very common in my work flow to read a log file and need to parse the date/time part of the line to a Unixtime.

https://www.reddit.com/r/perl/comments/10r05fy/announcing_dateparsemodern/?%24deep_link=true&correlation_id=260983e3-5f5e-477c-b886-91d84587ded4&post_fullname=t3_10r05fy&post_index=3&ref=email_digest&ref_campaign=email_digest&ref_source=email&%243p=e_as&_branch_match_id=1017042970052510291&_branch_referrer=H4sIAAAAAAAAA22P3UrEMBCFn6betd1t%2BrfCIoL4GiEm024wmYTJlOrbO3XVKyEhh%2B9wzkxuzLk8ti2Bc54bk3MTPL63Kj9VXa%2FyFbQpDyIT%2BdWjCXqjcL0dqUo9V92rnH3fm5%2B8TVEAyc1AQR4BEZCLyPOJTsPyKcogpg2tx1U7w5ANFYjJAeFRqKSzdwBZH5tU6oVpg6obbSKCYNgn1N4J78bTZVag6mEZoO6nydZv8zzWl7Ob%2B2GeHLhecjkV1ssWApoIR53Sf6vcTY8OPsRRAggWURCND9r5FQrfobYmZuNX%2FN8taSMLv57AjaO2CVk%2BL%2FR7DHsO8AV%2FZ0EicQEAAA%3D%3D
February 3, 2023 at 2:17:01 PM EST *
dates perl
FILLER
Shaarli · The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community · Documentation
Fold Fold all Expand Expand all Are you sure you want to delete this link? Are you sure you want to delete this tag? The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community