string(); } /** * Initialize from datetime string. * * @see http://php.net/manual/en/datetime.formats.php * * @param string $time Time string */ abstract public static function fromString(string $time): static; /** * Get the date and time. */ public function dateTime(): DateTimeImmutable { return $this->dateTime; } /** * Get the date and time as a type specific string. */ public function string(): string { return $this->encodedAsDER(); } }