Re: can't reflection on DateTime properties?

From: Date: Sat, 04 Jun 2016 21:31:31 +0000
Subject: Re: can't reflection on DateTime properties?
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-93787@lists.php.net to get a copy of this message
On 04/06/16 21:23, Stanislav Malyshev wrote: > In generic case, you can't have internal state of an object, that's why > it's internal. If you need to serialize data, there are > serialize/unserialize handlers for it. This is also why DateTime is useless for many data handling functions since having to work with 'long hand' for something which is essentially a simple integer value is a heavy overhead. We are stuck with using Timezone management since there is nothing reasonably reliable as an alternative, but we only need timezone to DISPLAY the right text, not manage the raw dates. An alternate date/time variable is essential anyway, which is why some of these discussions are so utterly pointless anyway. date and time are as essential to any system as integer and float but all anybody seems to be bothered about is the same limited subset of 'types' ? -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk

« previous php.internals (#93787) next »