Page 2 of 2

Posted: Tue Apr 12, 2005 2:24 pm
by Chris Corbyn

Code: Select all

date("YmdGis", $unix_timestamp); //This converts $unix_timestamp to MySQL timestamp

Posted: Tue Apr 12, 2005 8:17 pm
by steedvlx
Thanks for that. But, (a bit cheeky here).. how would one go about adding 30 minutes to date("YmdGis", $unix_timestamp)? Just add 1800 to the value?

Or better yet, does anyone have a GOOD link reference on dealing with date and time manipulation functions. Wrox and Apress (and even php.net) don't seem to have a care for explaining them in much detail.

As always,
Thanks