Doc->Req #74054 [Opn]: New DateInterval properties based on `DateInterval::__debuginfo`

From: Date: Sun, 16 Feb 2020 19:27:08 +0000
Subject: Doc->Req #74054 [Opn]: New DateInterval properties based on `DateInterval::__debuginfo`
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-225599@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74054&edit=1 ID: 74054 Updated by: carusogabriel@php.net Reported by: a dot schilder at gmx dot de -Summary: DateInterval property documentation incomplete +Summary: New DateInterval properties based on DateInterval::__debuginfo Status: Open -Type: Documentation Problem +Type: Feature/Change Request Package: Date/time related Operating System: irrelevant -PHP Version: 7.1.1 +PHP Version: Next Major Version Block user comment: N Private report: N New Comment: Apart from f, all the properties that you mentioned they do not exist: https://3v4l.org/2vfiq. I don't think this is a Doc Bug, but rather a Feature Request than. Previous Comments: ------------------------------------------------------------------------ [2017-02-07 08:24:34] a dot schilder at gmx dot de Description: ------------ The following properties are missing in the documentation (http://www.php.net/class.dateinterval): - 'f' (decimal fraction of second) - 'weekday' (0 = undefined, 1 to 7 = Monday to Sunday?) - 'weekday_behavior' (?) - 'first_last_day_of' (?) - 'special_type' (?) - 'special_amount' (?) - 'have_weekday_relative' (?) - 'have_special_relative' (?) Especially the 'f' property is important when comparing two values, and it should be noted that the decimal fraction of the seconds was ignored in previous PHP versions. Expected result: ---------------- Documented properties Actual result: -------------- Undocumented properties ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=74054&edit=1

« previous php.bugs (#225599) next »