/** * Returns a copy of this ZonedDateTime with the nano-of-second altered. * * @param integer $nano * * @return ZonedDateTime */ public function withNano($nano) { return ZonedDateTime::of($this->localDateTime->withNano($nano), $this->timeZone); }