Re: Local time zone
| From: | Will Fitch | Date: | Wed, 14 Dec 2011 22:57:54 +0000 |
| Subject: | Re: Local time zone | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-56927@lists.php.net to get a copy of this message | ||
If enough interest is in this, I'll write a patch with the expectation
for unix based systems initially. I'll have to research the windows
support and reliability.
Who would care to have this (I personally will still be relying on ini)?
Sent from my iPhone
On Dec 14, 2011, at 5:44 PM, Stas Malyshev <smalyshev@sugarcrm.com> wrote:
> Hi!
>
>> On 14/12/11 22:53, Will Fitch wrote:
>>> I believe he's referring to sys/time.h, but this introduces
>>> portability issues. If it were just unix, that would be one thing.
>>> But maintaining this and a Windows alternative, and I have no idea
>>> what that is, is not worth it IMO.
>> <time.h> is present in *nix, Windows, and probably everywhere php
>> runs. As it provides mktime/gmtime/localtime, it should be possible
>> to portably deal with timezones.
>
> You seem to be misunderstanding what "portable" means here. It doesn't mean
> "compiles and runs on each system", it means "reliably produces predictable and
> identical results on each target system". The case with *time system functions is very far from
> that.
> --
> Stanislav Malyshev, Software Architect
> SugarCRM: http://www.sugarcrm.com/
> (408)454-6900 ext. 227