Re: Local time zone

From: Date: Wed, 14 Dec 2011 21:53:03 +0000
Subject: Re: Local time zone
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-56923@lists.php.net to get a copy of this message
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. On Dec 14, 2011, at 4:29 PM, Stas Malyshev wrote: > Hi! > >> * There will be a new time zone called System. When this time zone is >> active, instead of PHP's internal time zone database and >> timezone-aware code, system-provided local time APIs are used. In > > Which APIs do you mean? I imagine it might be possible (note - just might be, no guarantees > here) to get the system TZ data and use it in similar manner to existing TZ data if the formats are > suitably close and all the info is available. However if you mean using actual system functions in > parallel with timelib functions, that's probably not going to happen - there's too many > problems with using two APIs simultaneously to do the same thing, not talking about portability, > etc. > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.internals (#56923) next »