First, it's important to understand that timestamps do not have a time zone. A timestamp represents a specific moment in time; for example, I could say "what is the timestamp right now?" It is, at the very moment I typed this:
1514516921
It does not matter where in the world you are, or I am, or anyone reading this is. This timestamp represents the same moment in time for all of us. For me, in my time zone, it is 7:08pm because I live in the US Pacific time zone. For someone living in New York, this moment in time (timestamp) occurred at 10:08pm. For someone living in Europe, the time of day is very different. But for all of us, that timestamp represented the moment I typed on my keyboard.
So, if your question is
how do I convert a date to a unix timestamp
in php, you usually use strtotime
http://php.net/manual/en/function.strtotime.php Some examples:
<?php
echo strtotime("now"), "\n";
echo strtotime("10 September 2000"), "\n";
echo strtotime("+1 day"), "\n";
echo strtotime("+1 week"), "\n";
echo strtotime("+1 week 2 days 4 hours 2 seconds"), "\n";
echo strtotime("next Thursday"), "\n";
echo strtotime("last Monday"), "\n";
?>