Welcome Guest [Log In] [Register]
Thanks for checking out our board!

You are currently viewing our forum as a guest. This means you are limited to reading the board and there are features you can't use, such as posting or viewing member profiles.

If you join our community (or log in, if you're already a member), you'll be able to access member-only features such as creating a profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.

Sorry that we have to require registration, but it keeps out the hit-and-run spammers.

Join us!

If you're already a member please log in to your account to access all of our features.

Username:   Password:
Add A Reply
End of the (comupter) world?; 1234567890 Happens on Friday the 13th!
Topic Started: February 13, 2009, 9:34 am (88 Views)
HolyIbanez
1000
Summary:

http://www.gizmodo.com.au/2009/02/beware_unix_time_to_read_1234567890_on_friday_the_13th-2.html

Countdown Clock (like a true site dedicated to *NIX, it doesn't work in IE, only firefox):

http://www.1234567890day.com/

And for you perl hacker out there (This was properly tabbed, zetaboards strips my tabbing!):

Code:
 

#!/usr/bin/perl -w

use strict;
use FileHandle;

STDERR->autoflush(1);
STDOUT->autoflush(1);

my $target = 1234567890;

my $diff = &getDiff($target);

while ($diff >= 0) {
my $output = &formatSeconds($diff);
print STDOUT "\r$output";
select(undef,undef,undef,0.25);
$diff = &getDiff($target);
}

print STDOUT "\nCOUNTDOWN EXPIRED!\n";

exit(0);

sub formatSeconds($) {
my $mrt = shift; #absolute time in seconds
my $hr = int ($mrt/3600);
my $min = int (($mrt - ($hr * 3600))/60);
my $sec = int ($mrt -(($hr * 3600) + ($min * 60)));
my $ret = sprintf "%02d:%02d:%02d", $hr,$min,$sec;
return($ret);
}

sub getDiff($) {
my $t = shift;
return($t - time());
}

Offline Profile Quote Post Goto Top
 
Bad Wolf
Member Avatar
The Digial Alchemist
ooooo ^^ thanks ... :)
Posted Image
Offline Profile Quote Post Goto Top
 
HolyIbanez
1000
I was going to throw some .NET C# classes up there for the Windows developers, but since this more a UNIX themed event, I decided against it :party
Offline Profile Quote Post Goto Top
 
Blue Phoenix
Member Avatar
Administrator-For-Life!
LOL!!! that's totally Greek to me!


Posted Image
Come with me and you'll be in a World of Pure Imagination
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · The Road Less Travelled · Next Topic »
Add A Reply