gossamer has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I'm definitely a perl newbie, but eager to learn. I'm trying to use Time::Piece to print the the ISO8601 date on this day last month. Is this built in or will I have to use other functions to do this?
I have a bunch of DB_File hash files that have one of their values contains an ISO8601 date from some time in the past. I need to scan through all of the hash files and delete any record that contains a date older than 30 days.
The hashes were created by parsing the ISO8601 date as part of a filename such as myfile-b2291ce2b21d1cf6f6af68bd3e355505-20120112T115534.
I need to write a function that scans the hashes and delete any entries that have a date older than the day component of the filename above.
Thanks for any ideas,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using Time::Piece and ISO8601
by frozenwithjoy (Priest) on Jun 22, 2012 at 01:56 UTC | |
by gossamer (Sexton) on Jun 25, 2012 at 18:36 UTC |