Bouchard
Bouchard

Reputation: 77

What's the difference between 1/1/1970 and 12/31/1969 UNIX epoch invalid dates?

I know that when there's an invalid UNIX date, the default time is Epoch, but I see that some servers' default is 12/31/1969 while others servers' default is 1/1/1970. What's the difference between these two?

Upvotes: 3

Views: 2325

Answers (2)

sbking
sbking

Reputation: 7680

It's because of the server's time zone. For example, the Unix epoch is defined as 1/1/1970 00:00:00 UTC. In GMT-8 time zone, this would be 12/31/1969 4:00:00 PM.

Those are two ways of viewing the same moment, the same point on the timeline.

Upvotes: 6

bavin
bavin

Reputation: 1

utc-3 21:00:00 31/12/1969 is the answer

Upvotes: -1

Related Questions