Forum Moderators: open

Message Too Old, No Replies

Uhh...""DateInSecsSinceEpoch"

         

jk3210

1:41 am on Aug 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Okay, someone want to explain to me what the "DateInSecsSinceEpoch" in G News source code means?

Teknorat

1:43 am on Aug 16, 2004 (gmt 0)

10+ Year Member



Epoch: a period marked by distinctive character or reckoned from a fixed point or event.

Get it? ;)

duckhunter

2:45 am on Aug 16, 2004 (gmt 0)

10+ Year Member



Since is doesn't appear to change with refreshes, I would guess that is some sort of revision number?

trillianjedi

11:35 am on Aug 17, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's a convenient way of storing a long date/time value in a 4 byte format (a 32 bit integer).

The Epoch in C is the number of seconds that have elapsed since 1st January 1970. Most databases use something similar (a few of them back to 1/1/99, being 1899).

It's convenient (small), Y2K compatible and makes date/time maths a lot easier.

It'll be good until about the year 2069 or something last time I calculated ;-)

It's known as "t_time" in C, and I have a feeling it's called the same in php?

Google are probably using it as a means of checking dates referenced by something other than 1/1/1970.

TJ