[Home]CalcDay/Code

UseModWiki | CalcDay | RecentChanges | Preferences

Code

Version 0.92
sub CalcDay {
  my ($ts) = @_;

  $ts += $TimeZoneOffset;
  my ($sec, $min, $hour, $mday, $mon, $year) = localtime($ts);

  return ("January", "February", "March", "April", "May", "June",
          "July", "August", "September", "October", "November",
          "December")[$mon]. " " . $mday . ", " . ($year+1900);
}



UseModWiki | CalcDay | RecentChanges | Preferences
Edit text of this page | View other revisions | Search MetaWiki
Last edited March 8, 2010 6:32 pm by MarkusLude (diff)
Search: