We help IT Professionals succeed at work.

Need formula in function to calculate time??

Richard Kreidl
Last Modified: 2013-11-05
I generate an Excel spreadsheet by using the Perl module Writespreadsheet:Excel, but the string in the cell is in a "General Format" with the following data:

In Excel when I change the "General Format"  to a "Time format"  it appears as:
4:58 AM

Now, the way Excel does this is with the following formula:
0.207242063 * 24 hours makes 4.9776 hours

and then:

0.9776 * 60 =  58

which equates to 4:58 AM

So, basically I need a routine or function to do this for me in Perl..


Watch Question

Top Expert 2009
This one is on us!
(Get your first solution completely free - no credit card required)
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.