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

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to