NationStates Jolt Archive


Question about nationdata.cgi

Stratopia
16-04-2004, 22:51
Can anyone tell me how to interpret this?

<LASTLOGIN>1082137932</LASTLOGIN>

Is it some kind of encrypted date or session ID?

Thanks,
Mike
The Most Glorious Hack
17-04-2004, 09:01
That's evil Unix time.

In other words, your last login was 1,082,137,932 seconds after some date. I forget the date.
Liverpool England
17-04-2004, 09:04
That's evil Unix time.

In other words, your last login was 1,082,137,932 seconds after some date. I forget the date.

31 December 1969.
The Most Glorious Hack
17-04-2004, 09:05
That's evil Unix time.

In other words, your last login was 1,082,137,932 seconds after some date. I forget the date.

31 December 1969.

Dammit! I thought that was it, but didn't want to put the wrong date. BAH!
Roania
17-04-2004, 09:16
Sorry, wait. WHY? Did Unix even exist in 1969? Hell, did the Internet exist in 1969?
Kwaswhakistan
17-04-2004, 09:18
unix was around b4 the net
Roania
17-04-2004, 09:21
unix was around b4 the net

Sorry, can I get an answer to my question in English? 8)
The Most Glorious Hack
17-04-2004, 09:23
unix was around b4 the net

Sorry, can I get an answer to my question in English? 8)

Unix is a programming language, wholly separate from the internet, and it predates the internet by a good many years.
Roania
17-04-2004, 09:24
Yeah, but why does it date things from 1969?
Stratopia
17-04-2004, 11:56
Thanks, I figured that was what it was.

I think Javascript does the same thing. Seems that I remember one time fiddling with date formatting, and the whole thing centered around seconds since a date in the 1960s.
Gothic Kitty
17-04-2004, 12:01
Yeah, but why does it date things from 1969?

That was the day some UNIX guy started operating his stuff. In other words: "Last log in was 1,082,137,932 seconds after the implemention of UNIX".
Ballotonia
17-04-2004, 12:51
Unix isn't a programming language, nor was that time selected based on completion of implementation and turning a system on.


Unix is a specification for Operating Systems (OS). When an OS meets the specifications it is considered Unix. There are many different implementations, like SGI has IRIX, Sun has Solaris, there's HP-UX, AIX, etc... Some systems are not 100% up to spec and will have some modifications for various reasons. They're "Unix-like" or "based on Unix".

In Unix, the date/time is described as one number, the amount of seconds from a specific time. This was set after that time had already passed, and was done because it is a simple standard which doesn't take a lot of memory, it is easy to compare and calculate using date/time values, easy to keep track of for the system, and initially it was thought Unix wasn't gonna live long enough for that clock to run until the maximum possible number in the spec. Now it looks like it will ;)

Ballotonia
Goobergunchia
17-04-2004, 17:38
This is also, incidentally, why the forums sometimes say that the last post was in 1969.