On Thu, 4 May 2000, stanley g martin wrote:
> I hate to attempt to recreate the wheel, but has anyone written a sub
> that will convert a given number of seconds to hours, minutes, seconds?
>
How about:
sub hhmmss{
my $seconds=$_[0];
my $hours=int($seconds/3600);
my $minutes=int(($seconds-3600*$hours)/60);
return($hours,$minutes,$seconds % 60);
}
**** [EMAIL PROTECTED] <Carl Jolley>
**** All opinions are my own and not necessarily those of my employer ****
---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
[EMAIL PROTECTED]
For non-automated Mailing List support, send email to
[EMAIL PROTECTED]