for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace TechDeCo\ElasticApmAgent\Message;
use DateTimeImmutable;
use JsonSerializable;
final class Timestamp extends DateTimeImmutable implements JsonSerializable
{
public function jsonSerialize(): string
return $this->__toString();
}
public function __toString(): string
$utc = $this->setTimezone(new \DateTimeZone('UTC'));
return $utc->format('Y-m-d\TH:i:s.u\Z');