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 displays the events that are scheduled to
occur each day. (from midnight to midnight)

[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 the epoch and today at midight.

Todd W.





--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to