Help need for school project - urgent
Im new at php-editors Forum and im really needing help with php & javascript coding. Im a portuguese student and Im currently working in my project based on web strategy game, my problem is in having a mysql value that represent a number of seconds needed to build or produce a unit this number of seconds represents the amount of time needed to build a structure, i need to pass this number of seconds into a valid date that would represent seconds,minutes,hours and days.
Here is an example:
Sun Jun 22 16:13:59 2008 + 12 days 2hours 7minutes 1 second = Sun Jul 4 18:15:00 2008 (Can i end up with this result? its what i need)
Does any1 have any thoughts or ideas i could follow?
Last edited by Deathmachine; 2008-06-22 at 12:46 PM.
|