Skip to content

Instantly share code, notes, and snippets.

@zackn9ne
Created May 30, 2012 00:53
Show Gist options
  • Save zackn9ne/2831887 to your computer and use it in GitHub Desktop.
Save zackn9ne/2831887 to your computer and use it in GitHub Desktop.
PHP mini Calendar
<div class="date">
<p>
<?php
$hourdiff = "-8"; // hours diff btwn server and local time
$melbdate = date("D",time() + ($hourdiff * 3600));
print ("$melbdate");
?> </p>
<p class="big">
<a href="/?cat=17"><?php
$hourdiff = "-8"; // hours diff btwn server and local time
$melbdate = date("d",time() + ($hourdiff * 3600));
print ("$melbdate");
?> </a>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment