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 Link to comment https://forums.phpfreaks.com/topic/281132-php-local-date-time-functions/ Share on other sites More sharing options...
requinix Posted August 13, 2013 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. Link to comment https://forums.phpfreaks.com/topic/281132-php-local-date-time-functions/#findComment-1444798 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/ Link to comment https://forums.phpfreaks.com/topic/281132-php-local-date-time-functions/#findComment-1444833 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. Link to comment https://forums.phpfreaks.com/topic/281132-php-local-date-time-functions/#findComment-1444837 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.