
|
 |
|
Jamey Howard Dot Com
Welcome to my corner of the interweb. I guess the main thing to mention is my Photoblog. I like taking pictures of random things/people/places that interest me so I made a place where I could post up all the images. I try to post a new one every day so keep checking back, if it takes your fancy.
There are also more specific galleries of photos, because sometimes I feel like putting up a few photos around a single theme or event.
I collect sneakers and post pictures up as and when I get a new pair. Feel free to leave witty comments likening me to Imelda Marcos. It's all fun and games.
The site is all my own work. If you'd like to talk to me about doing any web stuff, use the contact form to get in touch.
Apart from that, have a look around. Leave a few comments on things. It's always nice to get feedback.
Countdown to my birthday
/***************************************
* Countdown 1.2 *
* ------------- *
* *
* Please (1) do not remove this header *
* and (2) only distribute this program *
* in its original, uneditted form. *
* *
* Use and transmission of this script *
* is governed by the included license *
* agreement. The latest version is *
* also available online at *
* http://jholman.com/about/license/ *
* *
* © Jeff Holman 2003 *
* *
* Email: admin@jholman.com *
* Web: http://www.jholman.com/ *
***************************************/
// See ReadMe.txt for usage instructions.
// Use included 'checktime.php' to determine server offset from your local time
// and change value below:
define("OFFSET", 0);
/* NO NEED TO EDIT BELOW */
define("YSECS", 365*24*60*60);
define("DSECS", 24*60*60);
define("HSECS", 60*60);
define("MSECS", 60);
function countdown($detail, $year, $month = 1, $day = 1, $hour = 0, $minute = 0, $second = 0) {
$years = $days = $hours = $minutes = $seconds = 0;
$now = mktime() + OFFSET*60*60;
$then = mktime($hour, $minute, $second, $month, $day, $year);
$cdown = abs($then - $now);
if ($detail == 1) $years = round($cdown/YSECS);
else $years = floor($cdown/YSECS);
$cdown %= YSECS;
if ($detail == 2) $days = round($cdown/DSECS);
else $days = floor($cdown/DSECS);
$cdown %= DSECS;
if ($detail == 3) $hours = round($cdown/HSECS);
else $hours = floor($cdown/HSECS);
$cdown %= HSECS;
if ($detail == 4) $minutes = round($cdown/MSECS);
else $minutes = floor($cdown/MSECS);
$cdown %= MSECS;
$seconds = $cdown;
$tnums = array($years, $days, $hours, $minutes, $seconds);
$ttext = array("year", "day", "hour", "minute", "second");
$shown = 0;
for ($i=0;$i<$detail;$i++) {
if ($tnums[$i]) {
echo "$tnums[$i] $ttext[$i]";
$shown++;
if ($tnums[$i] != 1) echo "s";
$count = 0;
for ($j=$i+1;$j<$detail;$j++) {
if ($tnums[$j]) $count++;
}
switch($count) {
case 0: break 2;
case 1: if ($shown>1) echo ","; echo " and "; break;
default: echo ", "; break;
}
}
}
if ($now > $then) echo " ago";
if ($now == $then) echo "now";
}
?> | |