Although you say that the module is listed in the Files tab on PerlApp, I'd recommend trying to manually add it to the "Added modules section" along with any modules that it uses. I've had to do this a few times when PerlApp didn't included required modules. If you're still having problems, you might also check out their user forums.
As for alternate methods for getting date/time data out of Excel, there's a few other methods.
- If you're accessing Excel via Win32::OLE, try retrieving 'Value2' instead of 'Value', which will return the formatted data.
- Also, you can convert manually the date/time from the numerical value stored. The whole number portion is something like the number of calendar days since a specific date and the decimal portion is the time of day.
I can't find the related information right now about the Excel formats, but if you search Excel's help, you should be able to find the information. If I find the information later, I'll post an update.
UPDATE:
I found the information that I was looking for. The link is below. The first few paragraphs explains the whole number for dates and decimals for time thing. Further on down, they have examples about doing some date/time math in Excel, but that will give you an idea of what you can do with your Perl code to do your own conversion.
http://support.microsoft.com/kb/214094
One last note about the link above. Toward the end, it describes the difference in how Excel handles dates on Windows vs. on Macs. If you decide to write your own code for the date/time conversion and plan to make it cross-platform compatible, you might want to keep that in mind.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.