in reply to Re^2: Adding Days To YYYYMMDD Date Format
in thread Adding Days To YYYYMMDD Date Format
I meant to add... I've uploaded a new version of DateTimeX::Auto so now it's possible to just do:
use DateTimeX::Auto qw(:auto); my $future = '2012-05-19' + 'P3Y4M2D'; # says '2015-09-21' say $future;
The duration format isn't the most readable, but it's an ISO standard (ISO 8601 duration), so fairly well documented if you Google for it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Adding Days To YYYYMMDD Date Format
by parv (Parson) on May 19, 2012 at 00:39 UTC | |
|
Re^4: Adding Days To YYYYMMDD Date Format
by justin423 (Scribe) on Aug 10, 2012 at 16:49 UTC | |
by jdporter (Paladin) on Aug 10, 2012 at 17:46 UTC | |
by tobyink (Canon) on Aug 10, 2012 at 21:49 UTC |