Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99607 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49682 invoked from network); 22 Jun 2017 08:19:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jun 2017 08:19:10 -0000 Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Received: from [82.113.146.227] ([82.113.146.227:40684] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E4/11-40687-97D7B495 for ; Thu, 22 Jun 2017 04:19:05 -0400 Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id 0F40F10C6D1; Thu, 22 Jun 2017 09:19:02 +0100 (BST) Date: Thu, 22 Jun 2017 09:19:01 +0100 (BST) X-X-Sender: derick@singlemalt.home.derickrethans.nl To: David Rodrigues cc: PHP Internals In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Subject: Re: [PHP-DEV] DateInterval and ISO 8601 From: derick@php.net (Derick Rethans) On Thu, 22 Jun 2017, David Rodrigues wrote: > As mentioned on doc (http://php.net/manual/en/dateinterval.construct.php) > the format is based on ISO 8601 ( > https://en.wikipedia.org/wiki/ISO_8601#Durations), but it doesn't respects, > for instance, decimal values. There are some reason for that? No particular reason, I just missed this feature of ISO8601 when I wrote this (back in 2004!). File a feature request at https://github.com/derickr/timelib and I'll see when I can add this in the future. cheers, Derick -- https://derickrethans.nl | https://xdebug.org | https://dram.io Like Xdebug? Consider a donation: https://xdebug.org/donate.php twitter: @derickr and @xdebug