src/TimeLib.php
/**
     * Rounds a timestamp down to midnight on the 1st of January of the year it 
     * was taken
     * @param timestamp - the timestamp to round off.
     * @return roundedTimestamp - the rounded timestamp
     */
Rounds a timestamp down to midnight on the 1st of January of the year it
was taken
@param timestamp - the timestamp to round off.
@return roundedTimestamp - the rounded timestamp
Rounds a timestamp down to midnight on the 1st of January of the year it was taken @param timestamp - the timestamp to round off . @return roundedTimestamp - the rounded timestamp
public static function roundTimestampToYear($timestamp)
    {
        $year  = date('Y', $timestamp);
        $roundedTimestamp = mktime(0, 0, 0, $month=1, $day=1, $year);
        return $roundedTimestamp;
    }
public static function roundTimestampToYear ( $ timestamp ) { $ year = date ( 'Y' , $ timestamp ) ; $ roundedTimestamp = mktime ( 0 , 0 , 0 , $ month = 1 , $ day = 1 , $ year ) ; return $ roundedTimestamp ; }
Rounds a timestamp down to midnight on the 1st of January of the year it
 was taken
 @param timestamp - the timestamp to round off.
Rounds a timestamp down to midnight on the 1st of January of the year it was taken @param timestamp - the timestamp to round off .