in reply to Re: Formats for date.
in thread Formats for date.

Are you implying that strftime does validation? I can't find any documentation to support that. Validation isn't needed anyway, since he's printing out the result of localtime.

Replies are listed 'Best First'.
Re^3: Formats for date.
by BaldPenguin (Friar) on Jun 28, 2005 at 23:21 UTC
    Actually, what I was implying was that if the localtime was read and then a value such as month were to be incremented, then sprintf() would print out a bad date( i.e. 13/30/2005). You are correct in that passing localtime straight to strftime would not require validation, if any were to exist. Thanks.

    True validation could be accomplished using Date::Calc or DateTime or similar to increment the date values.

    Don
    WHITEPAGES.COM | INC

    Edit by castaway: Closed small tag in signature