original_string: public static function getDateTime($date)
      {
          $_date = time();
  
          if (isset($date) && self::isValidDate($date)) {
              $_date = strtotime(preg_replace('/\(.*?\)/', '', $date));
          }
  
          return date('Y-m-d H:i:s', $_date);
      }
code: public static function getDateTime($date)
      {
          $_date = time();
  
          if (isset($date) && self::isValidDate($date)) {
              $_date = strtotime(preg_replace('/\(.*?\)/', '', $date));
          }
  
          return date('Y-m-d H:i:s', $_date);
      }
code_tokens: public static function getDateTime ( $ date ) { $ _date = time ( ) ; if ( isset ( $ date ) && self :: isValidDate ( $ date ) ) { $ _date = strtotime ( preg_replace ( '/\(.*?\)/' , '' , $ date ) ) ; } return date ( 'Y-m-d H:i:s' , $ _date ) ; }
docstring: Get date time
  @param string $date
  @return false|string
docstring_tokens: Get date time