Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121492 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 8859 invoked from network); 28 Oct 2023 14:07:21 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 28 Oct 2023 14:07:21 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 32C83180212 for ; Sat, 28 Oct 2023 07:07:20 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_05,HTML_MESSAGE, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS34011 80.237.132.0/24 X-Spam-Virus: No X-Envelope-From: Received: from wp160.webpack.hosteurope.de (wp160.webpack.hosteurope.de [80.237.132.167]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 28 Oct 2023 07:07:18 -0700 (PDT) Received: from [2a02:8109:b323:1700:e5f9:7932:39d4:19d7]; authenticated by wp160.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1qwjy8-0005WG-OZ; Sat, 28 Oct 2023 16:07:16 +0200 Content-Type: multipart/alternative; boundary="------------DtlKjb8l46meLG0mQtuH5hyG" Message-ID: <675b54f5-3fe5-4ecd-89dc-4c9dfc0cd77e@mabe.berlin> Date: Sat, 28 Oct 2023 16:07:16 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: PHP Internals List Content-Language: en-US X-bounce-key: webpack.hosteurope.de;marc@mabe.berlin;1698502040;43147420; X-HE-SMSGID: 1qwjy8-0005WG-OZ Subject: New DateTime[Immutable]::createFromTimestamp From: marc@mabe.berlin (Marc) --------------DtlKjb8l46meLG0mQtuH5hyG Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi internals, I have opened a small PR to add the following functions at https://github.com/php/php-src/pull/12413 DateTime::createFromTimestamp(int|float$timestamp):static DateTimeImmutable::createFromTimestamp(int|float$timestamp):static date_create_from_timestamp(int|float$timestamp):DateTime date_create_immutable_from_timestamp(int|float$timestamp):DateTimeImmutable I hope this does not require an RFC, but I'm not sure so I'm writing here to get some thoughts. Thanks, Marc --------------DtlKjb8l46meLG0mQtuH5hyG--