#include <stdio.h> #include <time.h>
int main( int argc, char **argv ) { time_t t;
(void) time( &t ); printf( "Hello world. It is %lu *NIX Time\n", (unsigned long) t );
if( argc > 1 ) { printf( "Your number is %d *NIX Time\n", (unsigned long) atol( argv[ 1 ] ) ); }
return( 0 ); }
Turns out, as I write this, that critter prints this:
Hello world. It is 1234549527 *NIX Time
The tension is palpable. If anyone cares, here is a Windows executable (in base64) that is the compiled result of the above using TCC:
TVqQAAMAAAAEAAAA?//8AALgAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAgAAAAA?4fug4AtAnNIbgBTM0hVGhpcyBwcm9ncmFtIGNhbm5vdCBiZSBydW4gaW4g
RE9TIG1vZGUuDQ0KJAAAAAAAAABQRQAATAECAAAAAAAAAAAAAAAAAOAADwMLAQYAAAAAAAAA
AAAAAAAAQBAAAAAQAAAAIAAAAABAAAAQAAAAAgAABAAAAAAAAAAEAAAAAAAAAFAhAAAAAgAA?
AAAAAAMAAAAAABAAABAAAAAAEAAAEAAAAAAAABAAAADwIAAAVQAAAEAgAAAoAAAAAAAAAAAA?
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAABoIAAAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC?50
ZXh0AAAA6AAAAAAQAAAAAgAAAAIAAAAAAAAAAAAAAAAAACAAAGAuZGF0YQAAAFABAAAAIAAA
AAIAAAAEAAAAAAAAAAAAAAAAAABAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABVieWB?7AQAAACQjUX8UOilAAAAg8QEi0X8ULgA
IEAAUOibAAAAg?8QI6QAAAADJwwAAAAAAAAAAAAAAAAAAAAAAVYnlgewUAAAAkLgAAAAAiUXs
uAAAAwBQuAAAAQ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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
As fate would have it, I happened to be running it in a loop to show the program in action to my kids when the epoch actually passed in front of us. I got a screen shot that I will eventually post somewhere. I am too geeky. This was actually more amusing to me than the year 2000 change. That was tainted by the notion that the whole thing was really 'time approximate' and likely celebrated in the wrong year. This event, though, was right down to the exact second from the atomic clocks on the Internet. Cool if you are a geek. Likely way *not* cool if you are a civilian, but what are the odds a civilian is looking at this?
This is me more than 10 years later. I still find this amusing. I’m glad I posted it.