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
"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
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
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]
"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
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
> 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
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