I usually prefer to use two different variables if the data changes fundamentally.  Here it changes from a time in seconds to a day resolution date.  Not critical, but it might be more clear to use a parameter like $seconds, e.g.:

  protected static function getNearestDate( $language, $seconds = 0 ) {