So what have you treied so far?  Although production efficiency may be aided by using 
prefab cope, the learning process is not.  you should probably focus attention to the 
sections on the time function.  You may also want to isolate elements of the localtime 
return string to check for the current day.  If you set your variables for the current 
day at the beginning of processing, you can then compare any dates in the file to see 
whether they correspond with the current day.

Joseph

"Scott, Deborah" wrote:

> I have a txt data file that has several fields. Two of the fields are start
> time and end time (listed in epoch time).
>
> I need to write a perl program that finds (and prints) events that occur
> between midnight "last night" and "midnight tonight."
>
> First problem:
> The date for midnight "last night" and "tonight" will change each day, so
> this needs to be some kind of automatic date finder.
>
> Second problem:
> How do I find (and then list) only those events that occur TODAY.
> These events might start or stop at any time during the month.
>
> The events that I would list would include ANYTHING that includes "today."
> Some might start today and end today and last only an hour. Some might start
> two days ago and end next week. This txt file will also list events that
> have already started and stopped last month or will start in the future, so
> I have to make sure that these are NOT included in "today's" report.
>
> I know I'll finally hit on the right combination of "if statements" but if
> someone already has the answer (or if you like mathematical jigsaw puzzles
> like this one)-- I'd appreciate your solution.
>
> Thanks from a new subscriber!
>
> Scotty


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

Reply via email to