|
|
| There's more than one way to do things | |
| PerlMonks |
Re: Generating basic time intervals between two timesby jorg (Friar) |
| on May 20, 2001 at 11:26 UTC ( [id://81819]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Converting the hh24:mm format into seconds since midnight allows for greater simplification and modularisationg of the code.
This outputs : E:\>perl -w test.pl $VAR1 = '18:20'; $VAR1 = '18:35'; $VAR1 = '18:50'; $VAR1 = '19:05'; $VAR1 = '19:20'; $VAR1 = '19:35'; $VAR1 = '19:50'; $VAR1 = '20:05'; $VAR1 = '20:20'; $VAR1 = '20:35'; $VAR1 = '20:50'; $VAR1 = '21:05'; $VAR1 = '21:20'; $VAR1 = '21:35'; $VAR1 = '21:50'; $VAR1 = '22:05'; $VAR1 = '22:20'; Jorg "Do or do not, there is no try" -- Yoda
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||