in reply to Coolest way to decode YYYYMMDD?
Is that "cool" enough? :)use DateTime; use List::MoreUtils qw(mesh); my $string = "19830501"; my $date = DateTime->new( mesh @{['year', 'month', 'day']}, @{[unpack "A4A2A2", $string]} );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Coolest way to decode YYYYMMDD?
by ikegami (Patriarch) on Jun 03, 2013 at 06:43 UTC |