original_string: protected function getDateTimestamp($value)
      {
          if ($value instanceof DateTimeInterface) {
              return $value->getTimestamp();
          }
  
          if ($this->isTestingRelativeDateTime($value)) {
              $date = $this->getDateTime($value);
  
              if (! is_null($date)) {
                  return $date->getTimestamp();
              }
          }
  
          return strtotime($value);
      }
code: protected function getDateTimestamp($value)
      {
          if ($value instanceof DateTimeInterface) {
              return $value->getTimestamp();
          }
  
          if ($this->isTestingRelativeDateTime($value)) {
              $date = $this->getDateTime($value);
  
              if (! is_null($date)) {
                  return $date->getTimestamp();
              }
          }
  
          return strtotime($value);
      }
code_tokens: protected function getDateTimestamp ( $ value ) { if ( $ value instanceof DateTimeInterface ) { return $ value -> getTimestamp ( ) ; } if ( $ this -> isTestingRelativeDateTime ( $ value ) ) { $ date = $ this -> getDateTime ( $ value ) ; if ( ! is_null ( $ date ) ) { return $ date -> getTimestamp ( ) ; } } return strtotime ( $ value ) ; }
docstring: Get the date timestamp.
  
  @param  mixed  $value
  @return int
docstring_tokens: Get the date timestamp .