Calendar.pm


NAME

Communiware::Filter::ThisMonth - returns list of days in current month.


SYNOPSIS

 <:Loop ::ThisMonth:>
 ...
 <:EndLoop:>
 <:Loop ::ThisMonth(@SOME_DATE):>
 ...
 <:EndLoop:>


DESCRIPTION

this filter returns list of contexts with one context for each days in the month.

If no parameter given, returns days of current month, if date value is passed as only parameter, returns month, containing given date.


ATTRIBUTES

Contexts created by this filter contain following attributes:

DAY
NUMBER, day of month (really, equals to SEQ_NO).

DOW
NUMBER, day of week 1 for Monday, 7 for Sunday.

MONTH
NUMBER, month number 1 for January, 12 for December.

YEAR
NUMBER, 4-digit year.

DATE
DATE, date of midnight which begins given day.

LASTDAY
NUMBER, date of last day in the montn.

16 октябрь 2007 13:44