FRIHOSTFORUMSSEARCHFAQTOSBLOGSCOMPETITIONS
You are invited to Log in or Register a free Frihost Account!


UST





chatrack
Hi,

Can you tell me the php script to get Universal Standard Time.
Is there a built in function for that in php ?

Thank You
Nemesis234
http://www.php.net/manual/en/function.date.php
chatrack
Nemesis234 wrote:
http://www.php.net/manual/en/function.date.php


thank you Nemesis234 for guidance.

Is there a way to find my local time ( UST + 5:30 ) from this ?
rickylau
chatrack wrote:
Nemesis234 wrote:
http://www.php.net/manual/en/function.date.php


thank you Nemesis234 for guidance.

Is there a way to find my local time ( UST + 5:30 ) from this ?
In PHP, "local" mean server side.

For client's local timezone (timezone local to the user), you can only figure it out from JavaScript Date.getTimezoneOffset function. PHP don't know your time settings.
Or you may figure it out (timezone local to the location) by knowing the client's location, one way to do so is GeoIP (it requires a database, you may google for it if you really need that complicated solution)
Related topics
Frihost nedir ? Size neler sunar ?
Humor :)
Zabawa w Zdjęcia
Co by było gdyby... Lepper był prezydentem ;)
Jakiej muzyki nienawidzicie!!!
Peogramy graficzne
Komunikatory
Odnosnie moderowania forum
Nobody can explain this!
How much and How often you Drink ?
Bill gates visit to India
Serwer frih.net nie dziala ?
Skrócili rok szkolny.
lets think for a sec
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.