WebDesignerDeveloper Posted August 13, 2013 Share Posted August 13, 2013 http://www.idea-ads.com/ Please, what is the code for getting local (seperate coed for different countries, I want indian date and time code) date and time code in php Quote Link to comment Share on other sites More sharing options...
Solution requinix Posted August 13, 2013 Solution Share Posted August 13, 2013 Why are you advertising your website? It has nothing to do with your question. date_default_timezone_set. Use it before calling date() for every timezone you want a date/time in. Quote Link to comment Share on other sites More sharing options...
Barand Posted August 13, 2013 Share Posted August 13, 2013 or you can do as I did in this other topic http://forums.phpfreaks.com/topic/281136-half-a-timezone/ Quote Link to comment Share on other sites More sharing options...
requinix Posted August 13, 2013 Share Posted August 13, 2013 Right. If you're interested in OOP then go with objects (DateTime, DateTimeZone, etc). I'm just stuck in my ways with the procedural functions. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.