Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105467 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 83549 invoked from network); 27 Apr 2019 15:36:21 -0000 Received: from unknown (HELO mail-wr1-f47.google.com) (209.85.221.47) by pb1.pair.com with SMTP; 27 Apr 2019 15:36:21 -0000 Received: by mail-wr1-f47.google.com with SMTP id g3so8297562wrx.9 for ; Sat, 27 Apr 2019 05:37:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=xDbIyefOaI/zloRiHk3vuLLrkEXHQT9mebVZ8jtSDJE=; b=YtgxFVn2xhXsVix+CsExDG5qWNjDRR91o1TQpJNKbETQBR+8SkPy3mWv6BRlsxfQ/B 8S6k61WBRcJ9Iqp0ro6HG26ZWEpabbLUmKoUVisBvXcGuj7ygvENNA0oxsxNVTriawFx qwd5AHahQh1uzLdnazf9yi3yXp3bx9vgiPqQxyaArWuC/WnA6ftmjTish1ZDR6o/P68A A2XvJn6WVKN2GJ/GDjPCc/0EW/Uxv9hh9OmNE35DP2v9J3Pu8x/gFfjxoqWhi1bFk8Xj H1aRLHe/UlMgv62k5pSOvNlF0wkuOafCESbU4OxjXnUYIW9Ba0Pw+eIY7lh8AG3B1F7C m7RA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=xDbIyefOaI/zloRiHk3vuLLrkEXHQT9mebVZ8jtSDJE=; b=A82Fh2Aob91/oXzcTHtnRhMOEIMbG07z+J2/+ank7COe+OZogzGG2/DpwE8DoKVrnf CwfgU3UPISGifBWex0McpDBBeOdNqU6oDPQDJALbJSCd7eajncVXs/UMvj74PEZWp4E5 zB/AApoB9kGmnLYxz+Q3vrQopIobju0sazTObjYTpNaHAYaU2y9macW7m7VArHWqdrHN Djn0z7HhmizkeDOI4FyzmHN9aBcY8pWPRwJlC1XDfEnk51nX9sQ1ZH0Xiik3DiZwOLlE 4szqd6dIiWYXIit5MneyQ6Fmg2LNVp5VXQszgz9DjkB8Kq35M3+pT2wQhnIDqG/79W0O lK8g== X-Gm-Message-State: APjAAAUfgAlAtf5b1uKk028LHjDWAHU0lfagqe/WlisMYtbVTP7v+PNy KLFEVKkLUURY7kbVpBmFxDbPHLlk X-Google-Smtp-Source: APXvYqxNiFMtdD/nUOCfYXT410oscJ9jA3NcvgQ7uTGgv81T1wpflktBlEk/G4WUEVRbBLfeK7kqTQ== X-Received: by 2002:a05:6000:10c3:: with SMTP id b3mr8628637wrx.9.1556368663953; Sat, 27 Apr 2019 05:37:43 -0700 (PDT) Received: from [192.168.0.16] (cpc84253-brig22-2-0-cust114.3-3.cable.virginm.net. [81.108.141.115]) by smtp.googlemail.com with ESMTPSA id o4sm36976198wmo.20.2019.04.27.05.37.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 27 Apr 2019 05:37:42 -0700 (PDT) To: PHP internals References: Message-ID: Date: Sat, 27 Apr 2019 13:37:41 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB Subject: Re: [PHP-DEV] Revive Number Format Separator RFC From: rowan.collins@gmail.com (Rowan Collins) On 27/04/2019 12:18, Thomas Punt wrote: > Storing dates in an integer format can be a valid use case if > performance is a > concern. It is far faster and more compact to store and compare > integer-based > dates than using objects for everything. The only way I've seen dates stored as integers is as a number of seconds / milliseconds / whatever since some epoch, most commonly seconds since 1970-01-01 00:00:00 UTC The format Bishop seemed to be suggesting would be absolutely useless for anything other than the simplest comparisons: how do you add a day to the date-as-number 20190430? I'm sure there are use cases for this syntax, but the examples in that e-mail were poorly chosen. Regards, -- Rowan Collins [IMSoP]