Thomas Bätzler wrote:
Richard Lee <[EMAIL PROTECTED]> asked:
What is the best way to indicate past hour from current time
without using a module?
[...]
#!/usr/bin/perl -w
use strict;
printf "%d:%02d to %d:%02d\n", (localtime time - 3600 )[2,1], (localtime
time)[2,1];
__END__
Richard Lee wrote:
> What is the best way to indicate past hour from current time without
> using a module?
>
> so if it's 12:00, then 11:00-12:00
>
> if it's 17:30 then 16:30 to 17:30
>
> if it's 00:30 then 23:30 to 00:30
>
> I wrote a below program and works but there has to be a better and
Richard Lee <[EMAIL PROTECTED]> asked:
> What is the best way to indicate past hour from current time
> without using a module?
[...]
#!/usr/bin/perl -w
use strict;
printf "%d:%02d to %d:%02d\n", (localtime time - 3600 )[2,1], (localtime
time)[2,1];
__END__
> my $time = localtime;
> my @tim
On Wed, Apr 2, 2008 at 2:24 AM, Jeff Pang <[EMAIL PROTECTED]> wrote:
> On 4/2/08, Chas. Owens <[EMAIL PROTECTED]> wrote:
> > On Wed, Apr 2, 2008 at 2:02 AM, Jeff Pang <[EMAIL PROTECTED]> wrote:
> > > On 4/2/08, Richard Lee <[EMAIL PROTECTED]> wrote:
> > > > What is the best way to indicate past
On 4/2/08, Chas. Owens <[EMAIL PROTECTED]> wrote:
> On Wed, Apr 2, 2008 at 2:02 AM, Jeff Pang <[EMAIL PROTECTED]> wrote:
> > On 4/2/08, Richard Lee <[EMAIL PROTECTED]> wrote:
> > > What is the best way to indicate past hour from current time without
> > > using a module?
> > >
> > > so if it's
Richard Lee wrote:
What is the best way to indicate past hour from current time without
using a module?
so if it's 12:00, then 11:00-12:00
if it's 17:30 then 16:30 to 17:30
if it's 00:30 then 23:30 to 00:30
I wrote a below program and works but there has to be a better and
easier(not sure i
On Wed, Apr 2, 2008 at 2:02 AM, Jeff Pang <[EMAIL PROTECTED]> wrote:
> On 4/2/08, Richard Lee <[EMAIL PROTECTED]> wrote:
> > What is the best way to indicate past hour from current time without
> > using a module?
> >
> > so if it's 12:00, then 11:00-12:00
> >
>
> I'd prefer using POSIX modul
On 4/2/08, Richard Lee <[EMAIL PROTECTED]> wrote:
> What is the best way to indicate past hour from current time without
> using a module?
>
> so if it's 12:00, then 11:00-12:00
>
I'd prefer using POSIX module since it's a built-in perl module.
The code would be simple,
use strict;
use POSIX 'str
What is the best way to indicate past hour from current time without
using a module?
so if it's 12:00, then 11:00-12:00
if it's 17:30 then 16:30 to 17:30
if it's 00:30 then 23:30 to 00:30
I wrote a below program and works but there has to be a better and
easier(not sure if I want easier as I