public function getTime() {
    if (isset($this->data['time'])) {
      $requestTime = new \DateTime();
      //TODO: fix the microseconds to miliseconds
      $requestTime->createFromFormat("Y-m-dTH:i:s.uZ", $this->data["time"]);
      return $requestTime;
    }
    return null;
  }
public function getTime() {
    if (isset($this->data['time'])) {
      $requestTime = new \DateTime();
      //TODO: fix the microseconds to miliseconds
      $requestTime->createFromFormat("Y-m-dTH:i:s.uZ", $this->data["time"]);
      return $requestTime;
    }
    return null;
  }
public function getTime ( ) { if ( isset ( $ this -> data [ 'time' ] ) ) { $ requestTime = new \ DateTime ( ) ; //TODO: fix the microseconds to miliseconds $ requestTime -> createFromFormat ( "Y-m-dTH:i:s.uZ" , $ this -> data [ "time" ] ) ; return $ requestTime ; } return null ; }
Returns if exists the request time
@return \DateTime
Returns if exists the request time