CalDate

Description

This macro should only be run from pages created under a MonthCalendar. It looks at the URL and returns a formatted string of the date from the calendar. The formatting is from the strftime function.

Download & Release Notes

Download

Release Version

Moin Version

Release Notes

CalDate_0.1.py

0.1

1.6

Initial Release

Usage

You'll need to click on any of the red dates to see it in use.

<< <  2007 / 4 >  >>
Mon Tue Wed Thu Fri Sat Sun
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            

One note. I found that macros (unfortunately) don't expand in the titles. So you can't do:

= <<CalDate("%d %B, %Y">> Notes =

Example

This returns dates to look like, "12 April, 2008":

<<CalDate("%d %B, %Y">>

This adds an offset to the date. I use this for creating rehearsal notes for my chorus. The top part says:

<<CalDate("%d %B, %Y")>> Notes

The next section shows:

<<CalDate("%d %B, %Y",7)>> Upcoming Agenda

License

Bugs

Discussion

MoinMoin: MacroMarket/CalDate (last edited 2008-04-12 16:02:46 by cpe-66-68-51-114)