in reply to Re: processing dates as directories
in thread processing dates as directories

Hey, your solution gave me a thought. Passing in the date is just a number... could I do a numerical < end-date and > start-date comparison inside the loop that you have?

How would that look exactly?

Replies are listed 'Best First'.
Re^3: processing dates as directories
by CountZero (Bishop) on Aug 10, 2013 at 06:34 UTC
    Of course you can. Those directory names only look like dates, but are just strings and you can do sort them and use the ... operator on them.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

    My blog: Imperial Deltronics