On Thu, Sep 27, 2012 at 10:46 AM, Jim Gibson <jimsgib...@gmail.com> wrote:
>
> On Sep 27, 2012, at 8:16 AM, Chris Stinemetz wrote:
>
>> Hello List,
>>
>> I have the following millisecond value: 54599684
>> This represents a timestamp reported as milliseconds past midnight local 
>> time.
>>
>> Is there a module to convert this into a hh::mm format? Or a Perlish
>> example to handle this?
>
> my $t=54599684;
> printf("%02d:%02d\n", ($t/3600000),(($t/60000)%60));
>
> 15:09
>

Your example works perfectly.

Thank you so much,

Chris

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to