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

Reply via email to