Package XSLTools :: Module XMLCalendar
[show private | hide private]
[frames | no frames]

Module XSLTools.XMLCalendar

Copyright (C) 2005, 2007 Paul Boddie <paul@boddie.org.uk>

Additional copyrights for the monthcalendar function:

Copyright (c) 2001, 2002, 2003, 2004, 2005 Python Software Foundation.
Copyright (c) 2000 BeOpen.com.
Copyright (c) 1995-2001 Corporation for National Research Initiatives.
Copyright (c) 1991-1995 Stichting Mathematisch Centrum.

This program is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the Free
Software Foundation; either version 3 of the License, or (at your option) any
later version.

This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
details.

You should have received a copy of the GNU Lesser General Public License along
with this program.  If not, see <http://www.gnu.org/licenses/>.

Function Summary
  get_calendar_for_month(year, month)
  get_next_year_and_month(year, month)
  get_previous_year_and_month(year, month)
  monthcalendar(year, month, firstweekday)
Return a matrix representing a month's calendar.
  write_month_to_document(doc, root, year, month)
Write into the document 'doc' appending to the child elements of the 'root' element, inserting a month calendar based on the specified 'year' and 'month'.

Function Details

monthcalendar(year, month, firstweekday=0)

Return a matrix representing a month's calendar.
Each row represents a week; days outside this month are zero.

write_month_to_document(doc, root, year, month)

Write into the document 'doc' appending to the child elements of the 'root'
element, inserting a month calendar based on the specified 'year' and
'month'.

Generated by Epydoc 2.1 on Sat Jul 7 23:23:39 2007 http://epydoc.sf.net