in reply to Re^2: Date::Manip problem when creating arrays
in thread Date::Manip problem when creating arrays

Have you read the documentation on Date::Manip::Recur? It explains how the recurrence pattern works. If you use it as you did, you get exact distances, and it seems that, somewhat naturally, Date::Manip declares a "day" to be "24 hours".

It seems from the documentation that the following could work:

0:0:0:1*0:0:0

... but to be sure, I recommend you actually read the documentation, now that you are aware of the fact that not all "days" are 24 hours long.

Replies are listed 'Best First'.
Re^4: Date::Manip problem when creating arrays
by SBECK (Chaplain) on Aug 02, 2011 at 15:58 UTC
    I'll confirm that the recurrence (0:0:0:1*0:0:0) DOES work (assuming that what you are after is a list of ALL dates at time 00:00:00).

    Corion is correct about the source of the confusion... since a day is not always 24 hours long, applying a recurrence like this can give unexpected results. The only way to get around this is to make sure that the recurrence has an (*) in it which explicitly sets values in the date(s) returned.