Eris Posted July 27, 2008 Share Posted July 27, 2008 Hi! I have an integer timestamp, for example 1217147392 which means 27/07/2008 08:29:52 and I want it to be printed in GMT +3 offset that is: 27/07/2008 11:29:52. I don't want to change locale, just need a function that takes the offset as argument and returns new time. Is there a standard function like that or I have to write my own one? Thx Link to comment https://forums.phpfreaks.com/topic/116826-solved-printing-date-with-offset/ Share on other sites More sharing options...
genericnumber1 Posted July 27, 2008 Share Posted July 27, 2008 Are you looking for something like date_modify()? http://us2.php.net/manual/en/function.date-modify.php Link to comment https://forums.phpfreaks.com/topic/116826-solved-printing-date-with-offset/#findComment-600740 Share on other sites More sharing options...
Eris Posted July 27, 2008 Author Share Posted July 27, 2008 Thanx a lot, that was exactly what I needed Link to comment https://forums.phpfreaks.com/topic/116826-solved-printing-date-with-offset/#findComment-600746 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.