Web www.gerd-tentler.de

Version 2.11 (released Nov. 29, 2009)

Introduction

Use this Perl class to create a monthly calendar. It's easy to use and highly customizable, supports multiple languages, and you can choose whether weeks start with Saturday, Sunday, Monday, or any other day. Of course you can create as many calendars as you like. Have a look at the example below. It shows five calendars; the current month (big in the middle) plus the two previous months (left) and the two next months (right):

Example:

week numbers  

July 2010
SuMoTuWeThFrSa 
    12326
4567891027
1112131415161728
1819202122232429
2526272829303130

August 2010
SuMoTuWeThFrSa 
123456731
89101112131432
1516171819202133
2223242526272834
293031    35
September 2010
SuMoTuWeThFrSa 
   123435
56789101136
1213141516171837
1920212223242538
2627282930  39
October 2010
SuMoTuWeThFrSa 
     1239
345678940
1011121314151641
1718192021222342
2425262728293043
31      44

November 2010
SuMoTuWeThFrSa 
 12345644
7891011121345
1415161718192046
2122232425262747
282930    48

In 1582, Gregory XIII made a calendar reformation (advanced leap year rules + 10 days have been dropped in October) and created the Gregorian calendar, which is in use since then. Therefore HTML-Calendar applies the Gregorian calendar for years > 1582, and the old Julian calendar for years <= 1582.

Regarding week numbers, HTML-Calendar applies the following rules:
  • One week consists of 7 days.
  • The first week of a year must contain at least 4 days, or else it will appear as last week of the previous year. This may vary depending on the day that starts the week (Saturday, Sunday, Monday...).

Important note for users of older HTML-Calendar versions

In version 2.7, two variables were removed: tdFontColor and tdBGColor. They were replaced by a new variable tdBorderColor. This has been done because the current day (today) is now just marked by a border, leaving font color and background color unchanged. Be sure to update any scripts that use HTML-Calendar accordingly. Sorry for the inconvenience.

Change Log

Version 2.11
  • Added support for links with parameters.
Version 2.10
  • Added possibility to view only a certain week.