I am trying to read an Excel in Perl which have values in format –> “12:21:33 PM”
I need to Compare the Values of two cells and then need to sort them our accordingly.
But the issue is that when i tried to read the values and checked (by using Printf) some decimal values in form of .444432323232 is displayed and due to this i am unable to compare two values of time.
Plz suggest
This is excel. The data and the display text are different. Datetime in excel stored as a real.
Check these how to handle time in excel:
http://search.cpan.org/~jmcnamara/Spreadsheet-WriteExcel-2.37/lib/Spreadsheet/WriteExcel.pm#DATES_AND_TIME_IN_EXCEL
And check this module too: http://search.cpan.org/~aburs/DateTime-Format-Excel-0.31/lib/DateTime/Format/Excel.pm
regards,