public static function from($time): self
	{
		if ($time instanceof DateTimeInterface) {
			return new static($time->format('Y-m-d H:i:s'), $time->getTimezone());

		} elseif (is_numeric($time)) {
			return (new static('@' . $time))
				->setTimezone(new DateTimeZone(date_default_timezone_get()));

		} else {
			return new static($time);
		}
	}
public static function from($time): self
	{
		if ($time instanceof DateTimeInterface) {
			return new static($time->format('Y-m-d H:i:s'), $time->getTimezone());

		} elseif (is_numeric($time)) {
			return (new static('@' . $time))
				->setTimezone(new DateTimeZone(date_default_timezone_get()));

		} else {
			return new static($time);
		}
	}
public static function from ( $ time ) : self { if ( $ time instanceof DateTimeInterface ) { return new static ( $ time -> format ( 'Y-m-d H:i:s' ) , $ time -> getTimezone ( ) ) ; } elseif ( is_numeric ( $ time ) ) { return ( new static ( '@' . $ time ) ) -> setTimezone ( new DateTimeZone ( date_default_timezone_get ( ) ) ) ; } else { return new static ( $ time ) ; } }
DateTime object factory.

@param string|int|DateTimeInterface $time
DateTime object factory .