Re: how to look back past hour

2008-04-06 Thread Richard Lee
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__

Re: how to look back past hour

2008-04-02 Thread Rob Dixon
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

RE: how to look back past hour

2008-04-01 Thread Thomas Bätzler
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

Re: how to look back past hour

2008-04-01 Thread Chas. Owens
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

Re: how to look back past hour

2008-04-01 Thread Jeff Pang
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

Re: how to look back past hour

2008-04-01 Thread John W. Krahn
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

Re: how to look back past hour

2008-04-01 Thread Chas. Owens
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

Re: how to look back past hour

2008-04-01 Thread Jeff Pang
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

how to look back past hour

2008-04-01 Thread Richard Lee
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