Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
For example I read a file listed with dates:
in.txt: Mon Mar 30 10:00:00 2013 Sun Mar 29 10:00:00 2013 Sat Mar 28 10:00:00 2013
and I want to subtract 30 days from each date and save them to out.txt in exactly this same format Of course I can read the file and tokenize them, but I don't know how to subtract date(and with same format).. what is the proper module for this job?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl date calculation and formatting
by pme (Monsignor) on Jul 10, 2015 at 07:45 UTC | |
|
Re: Perl date calculation and formatting
by i5513 (Pilgrim) on Jul 10, 2015 at 07:00 UTC | |
by Anonymous Monk on Jul 10, 2015 at 09:05 UTC | |
|
Re: Perl date calculation and formatting
by ambrus (Abbot) on Jul 13, 2015 at 10:53 UTC | |
|
Re: Perl date calculation and formatting
by hippo (Archbishop) on Jul 10, 2015 at 09:01 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |