Given that I have 2 timestamps:
1332954000
which is 18:00pm in human readable format. I got this from strtotime(“18:00”)
and
1330992000
which is Tues 6 march 2012 in human readable format
How can I add them together such that it will become Tuesday 6 March 2012 18:00pm in Unix timestamp format?
1332954000 doesn’t mean 18:00, it means 1332954000 seconds from 1st Jan 1970.
You can’t represent 18:00 in seconds from 1st Jan 1970, so your question is meaningless.
You could represent 18:00 as being equal to 18 * 60 * 60 = 64800 seconds, then add that on to your date, which would make sense.
You could concatenate the strings together then use strtotime on that to get what you want alternatively.