Sunday, December 17 in 2017
Module Frontpage Slideshow
LEPTON CMS
Pageviews 55,369
Currently online: 9
Modul: Countdown
Author: Ralf Hertsch
Nick: Ralf (Berlin)
Contact: hertsch@berlin.de
State: Alpha
Platform: 2.7
Last info: 2011-11-10
Rating:
57.0
518 votes
1 2 3 4 5
Forum: here
Description: This simple snippet could be placed in a code section or in your template wherever you want.

Code:

$today = time();
$dayX = mktime(date('G'), date('i'), 0, 12, 24, 2010);
echo "still " . round(($dayX-$today)/(3600*24),0) . " days before Xmas!";


See also: Countdown

 

The snippet in action:

still -2185 days before Xmas!

and only -2178 days before 2012!

 

We wish you a merry Xmas and a happy new year !

TagCloud