in reply to Convert between DateTime and Excel dates
According to the module documentation the following should work:
use Spreadsheet::ParseExcel::Utility qw(ExcelLocaltime); ... my $inTime = $sheet->{Cells}[$row][0]->{Val}; print"Intime=> $inTime\n"; my ($iSec, $iMin, $iHour, $iDay, $iMon, $iYear, $iwDay, $iMSec) = Exce +lLocaltime($inTime); $iYear += 1900; $iMon +=1; print "Date is [$iYear:$iMon:$iDay $iHour:$iMin:$iSec]\n";
Regards,
Luke
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Convert between DateTime and Excel dates
by madtoperl (Hermit) on Jan 12, 2009 at 13:45 UTC |