Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between the current timestamp in the GMT time zone and the current timestamp in your local time zone?

This is a sample question i found at ZEND php certificate practice test, the correct answer of this question is: " There is no difference between the current time in any time zone—the current time is an absolute point in time! " This answer is very odd and confusing.I don't understand why this answer is correct, actually I think it depends on the number of hours between the local time zone and GMT. Could anyone help in this?

like image 254
Ibrahim Sana Avatar asked Dec 18 '25 00:12

Ibrahim Sana


1 Answers

They must have been referring to the unix timestamp. The unix timestamp is integer representing the number of seconds since the unix epoch -- which is defined as January 1, 1970 at midnight (00:00:00) in the GMT timezone.

So it doesn't matter what timezone you are in -- the unix timestamp is the same in all of them.

like image 93
Ben Lee Avatar answered Dec 19 '25 19:12

Ben Lee



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!