EDITED:
THIS PART IS WHAT I NEED TO SOLVE:
I have a negative integer like: -10800 and I wish to convert this at my local time, which is Buenos Aires (gmt -3).
I'm using an online converter to check what date it is so I can check the results: www.4webhelp.net and it throws that -10800 is Wednesday, December 31st 1969, 18:00:00 (GMT -3) but I believe this is not correct. I was told the negative number is in my timezone which is Buenos Aires.
I also want to create from date to string using the same time format. How can I do this?
THIS PART IS SOLVED:
Among the things I tryied in order to do this, a new doubt came up when learning about mktime:
I was trying to know which is the last day for february:
$lastday = mktime(0, 0, 0, 2, 0, 2015);
echo strftime("Last day is: %d", $lastday);
And this throws that february has 31 days which is incorrect. Why is that so?