Whats Today's Stardate?

I did not write this function, I found it on php.net and thought it was the nerdiest thing ever.

today is: September 10, 2010

the stardate is: 42832.425658832


the function is as follows:

/* 
author - anon
27-Jan-2009 01:16
Below, a function to create TNG-style stardates, taking 2009 to start stardate 41000.0.  In fact, the offset is trivial to adjust if you wish to begin from a different date.

Other series use less reliable stardate formats, which makes it difficult [read: nigh impossible] to create a function that converts a unix timestamp into a stardate.
*/

function getStardate(){
	$offset = 2000;
	$seconds_per_stardate = 31449.6; // is the number of seconds in a year divided by 1000, for hopefully obvious reasons
	return time() / $seconds_per_stardate + $offset;
}
$now = time();
echo 'today is: '.date('F d, Y', $now);
echo 'the stardate is: '.getStardate();