Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121493 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 11430 invoked from network); 28 Oct 2023 14:40:46 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 28 Oct 2023 14:40:46 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 13E71180212 for ; Sat, 28 Oct 2023 07:40:45 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS9370 160.16.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail.sakiot.com (mail.sakiot.com [160.16.227.216]) (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:40:44 -0700 (PDT) Received: from smtpclient.apple (softbank060067217005.bbtec.net [60.67.217.5]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by mail.sakiot.com (Postfix) with ESMTPSA id 72313401DE; Sat, 28 Oct 2023 23:40:41 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sakiot.com; s=default; t=1698504041; bh=xA+agMybtywpcIJNdie2udzR93ci9J2wiihM4wrPmw4=; h=Subject:From:In-Reply-To:Cc:Date:References:To:From; b=Q4smgL3I2pRJurjeAzFIuG+dHz62vToWV3j3sNPPW+1+PHf35bAeLF5Hg7aoo02IK mVQGSfCgoRIw9HDnlloHGg5xGJuA7tFq8B9psu+GXDYdbj8+p8QCezaQqrxjFW4HQ2 ig7jlhss0V3jAouGQ4m0mk286Y++zzxfbi5z09sM= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) In-Reply-To: <675b54f5-3fe5-4ecd-89dc-4c9dfc0cd77e@mabe.berlin> Cc: PHP Internals List Date: Sat, 28 Oct 2023 23:40:29 +0900 Message-ID: References: <675b54f5-3fe5-4ecd-89dc-4c9dfc0cd77e@mabe.berlin> To: Marc X-Mailer: iPhone Mail (21A360) Subject: Re: [PHP-DEV] New DateTime[Immutable]::createFromTimestamp From: saki@sakiot.com (Saki Takamachi) Hi Marc, Personally, I don't think these are necessarily necessary since there is a "= from format". However, there is certainly an issue of convenience, so I'm not against it i= f there's a demand for it. I have one concern. float is imprecise, so I don't think it's suitable for t= his kind of use. For timestamps, 16 digits are used, which exceeds the guara= nteed precision of 15 digits on non-IBM platforms. Regards. Saki=