Does MySQL UNIX_TIMESTAMP() show the same UNIX timestamp as PHP’s time() function. Even when the servers are in two different locations?
I’ve been looking into time and date for hours now and I’ve confused the hell out of my self.
Thanks in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, they are the same.
UNIX timestamps are the number of seconds since midnight of January 1, 1970 in UTC. That is the same time in history no matter where you are, no matter what time zone you’re in. The time elapsed since then is the same on every system with an accurate clock.