Fixed the %j conversion specification in ->strftime to return the correct value

%j should be padded with zeros if the day of the year is < 100, this matches
the DateTime documentation and the POSIX specification which says: Replaced by
the day of the year as a decimal number [001,366]. [ tm_yday]
Changes for %j fix
Fix parameter validation for truncate()