lancia01 Posted March 1, 2011 Share Posted March 1, 2011 Hello, input: I have a timestamp 1309438800 at GMT 1pm (2011-06-30 13:00:00 PM) output: how to make this timestamp at 1pm PST? cheers! Link to comment https://forums.phpfreaks.com/topic/229227-about-timestamps/ Share on other sites More sharing options...
requinix Posted March 1, 2011 Share Posted March 1, 2011 Use date. Link to comment https://forums.phpfreaks.com/topic/229227-about-timestamps/#findComment-1181121 Share on other sites More sharing options...
dragon_sa Posted March 1, 2011 Share Posted March 1, 2011 there might be a better way but pst is 8hrs behind gmt so $pst=time() - 28800; echo $pst; 28800 is the number of seconds in 8 hours time() is the current time stamp Link to comment https://forums.phpfreaks.com/topic/229227-about-timestamps/#findComment-1181122 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.