Perl’s str2time(“next week”) returns nothing, but “date -d ‘next week'” works fine. What Perl library implements date’s -d option?

(You): Perl’s str2time(“next week”) returns nothing, but “date -d ‘next week'” works fine. What Perl library implements date’s -d option?

(Brandon): Date::Manip is the canonical library for that kind of thing. It’s big and slow, though

(Brandon): also, I’ve found that in many cases it’s easier to let GNU date do it. Date::Manip is a bit weird

[Vark assigned category: Perl and Library, more details]

This entry was posted in Barry After Vark. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *