Re: PGAS code example

2002-04-26 Thread Rick Klement
Mail WebOn AS wrote: > > Was looking through the PGAS code and ran into these lines : > > # Is there a better way to do this? Probably > my $day = int($time_left/(60*60*24)); > my $hour = int(($time_left%(60*60*24))/(60*60)); > my $min = int((($time_left%(60*60*24))%(60*60))/60); > my $sec =

Re: PGAS code example

2002-04-26 Thread Dave Hoover
Ronald J Kimball wrote: >On Fri, Apr 26, 2002 at 09:51:11PM +0200, Mail WebOn AS wrote: >> Was looking through the PGAS code and ran into these lines : >> >> # Is there a better way to do this? Probably >> my $day = int($time_left/(60*60*24)); >> my $hour = int(($time_left%(60*60*24))/(60*60));

Re: PGAS code example

2002-04-26 Thread Chris Dolan
Ronald J Kimball wrote: > On Fri, Apr 26, 2002 at 09:51:11PM +0200, Mail WebOn AS wrote: > >>Was looking through the PGAS code and ran into these lines : >> >># Is there a better way to do this? Probably >>my $day = int($time_left/(60*60*24)); >>my $hour = int(($time_left%(60*60*24))/(60*60)); >

Re: PGAS code example

2002-04-26 Thread Ronald J Kimball
On Fri, Apr 26, 2002 at 09:51:11PM +0200, Mail WebOn AS wrote: > Was looking through the PGAS code and ran into these lines : > > # Is there a better way to do this? Probably > my $day = int($time_left/(60*60*24)); > my $hour = int(($time_left%(60*60*24))/(60*60)); > my $min = int((($time_left%

PGAS code example

2002-04-26 Thread Mail WebOn AS
Was looking through the PGAS code and ran into these lines : # Is there a better way to do this? Probably my $day = int($time_left/(60*60*24)); my $hour = int(($time_left%(60*60*24))/(60*60)); my $min = int((($time_left%(60*60*24))%(60*60))/60); my $sec = int((($time_left%(60*60*24))%(60*60))%