round() - new DateTime method proposal The round() method would do to a DateTime what "int" does to scalars: remove some fractional information.
Example: $date->round( 'day' ); would be the same as: $date->set( day => 1, hour => 0, minute => 0, second => 0 ); The rationale for this is that we can use this function to find out, for example, when the current month or week begins. Besides, DateTime::Set would use this function internally, when generating recurrences. - Flavio S. Glock
