final protected static function fromTimestampImpl()

in src/datetime/DateTime/DateTime.php [331:349]


  final protected static function fromTimestampImpl(
    Zone $timezone,
    Timestamp $timestamp,
  ): this {
    using new _DateTime\ZoneOverride($timezone);
    list($s, $ns) = $timestamp->toRaw();
    $parts = \getdate($s);
    return new static(
      $timezone,
      $timestamp,
      $parts['year'],
      $parts['mon'],
      $parts['mday'],
      $parts['hours'],
      $parts['minutes'],
      $parts['seconds'],
      $ns,
    );
  }