in reply to Re: Using Time::Piece Strptime
in thread Using Time::Piece Strptime
Here's the code piece I am working with:
my $dfile = 'd1528235.txt'; open my $dfh, '<', $dfile; my $date; while ( <$dfh> ) { chomp; if ( not $date and $date = join '/', /=\((\d\d)(\d\d)(\d\d)/ ) { my $str1 = '$date'; my $date1; $date1 = Time::Piece->strptime($date, '%D, %M, %b, %Y') ; $worksheet->merge_range('A2:G2',$date1,$format7,);
This is what I have actually gotten to work and it works pretty well except it gives me the default time in the middle displaying out 00:00:00 between the Day and the Year.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Using Time::Piece Strptime
by 1nickt (Canon) on Jan 26, 2016 at 16:11 UTC | |
by GrorkGnom (Initiate) on Jan 26, 2016 at 21:29 UTC | |
|
Re^3: Using Time::Piece Strptime
by poj (Abbot) on Jan 26, 2016 at 17:29 UTC |