public function Response::getTime in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/jcalderonzumba/gastonjs/src/NetworkTraffic/Response.php \Zumba\GastonJS\NetworkTraffic\Response::getTime()
Returns if exists the response time
Return value
\DateTime
File
- vendor/
jcalderonzumba/ gastonjs/ src/ NetworkTraffic/ Response.php, line 88
Class
- Response
- Class Response @package Zumba\GastonJS\NetworkTraffic
Namespace
Zumba\GastonJS\NetworkTrafficCode
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;
}