Re: Epoch midnight

2003-01-13 Thread david
Todd W wrote: > [trwww@devel_rh trwww]$ perl > use Time::Local; > ($day, $month, $year) = ( localtime() )[3 .. 5]; > > $epoch = timelocal( 0, 0, 0, $day, $month, $year ); > > print( scalar( localtime( $epoch ) ), "\n" ); > Ctrl-D > Fri Jan 10 00:00:00 2003 > > $epoch holds the seconds between t

Re: Epoch midnight

2003-01-13 Thread Todd Wade
"Rob Dixon" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > "Deborah Scott" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I thought I understood the answer, but I need more details. > > > > What exactly would I enter if

Re: Epoch midnight

2003-01-11 Thread Karl Kaufman
method, though another timelocal() call: $todayEnd_epoch = timelocal( 0, 0, 24, $day, $month, $year ); Regs, Karl - Original Message - From: "Todd W" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 10, 2003 8:40 PM Subject: Re: Epoch midnig

Re: Epoch midnight

2003-01-11 Thread R. Joseph Newton
Hi Rob, You missed a digit, I'm afraid--that should be 86400. Joseph ... my $epoch_today = time / 8400; #should be 86400 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Epoch midnight

2003-01-11 Thread Rob Dixon
"Deborah Scott" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I thought I understood the answer, but I need more details. > > What exactly would I enter if I want a program to find the epoch time for > midnight each night? I know how to find "current" time and

Re: Epoch midnight

2003-01-10 Thread Todd W
Deborah Scott wrote: I thought I understood the answer, but I need more details. What exactly would I enter if I want a program to find the epoch time for midnight each night? I know how to find "current" time and date in both "human" time and epoch time. I want to generate a report that displ

RE: Epoch midnight

2003-01-10 Thread Mark Anderson
> What exactly would I enter if I want a program to find the epoch time for > midnight each night? I know how to find "current" time and date in both > "human" time and epoch time. I can't give you code, because I haven't worked with perl's various time functions, but logically, I would get the

Epoch midnight

2003-01-10 Thread Scott, Deborah
I thought I understood the answer, but I need more details. What exactly would I enter if I want a program to find the epoch time for midnight each night? I know how to find "current" time and date in both "human" time and epoch time. I want to generate a report that displays the events that are