in reply to Re: Date Range Parsing
in thread Date Range Parsing

Thanks for the reply. The only problem with that is that a file contaning data for 20010201 is actually created sometime the following day. Or, am I not understanding something?

Replies are listed 'Best First'.
Re: Re: Re: Date Range Parsing
by chipmunk (Parson) on Feb 15, 2001 at 21:37 UTC
    Perhaps I am not understanding something. You wrote "I want to 'do something' to files created within a certain range of dates, inclusively." Is that not what you meant?

    Either way, you can still use Time::Local and compare your dates in epoch time.

    Another option is storing your dates in YYYYMMDD format (as you're already doing); then you can just compare them numerically.

    if ($begin_date <= $curr_date and $curr_date <= $end_date) { print "$curr_date is between $begin_date and $end_date.\n"; }