calendar. Creating calendar for specified month

^date:calendar[rus|eng](year;month)

The method makes up a table with calendar for specified month of the year. Parameter rus|eng is used to specify calendar's format. In format rus, the week starts with Monday, whereas in eng-with Sunday.

Example
$calendar_month[^date:calendar[eng](2005;1)]

As a result, variable
$calendar_month will be assigned a table with calendar for January 2005:

0

1

2

3

4

5

6

week

year


 





01

53

2004

02

03

04

05

06

07

08

01

2005

09

10

11

12

13

14

15

02

2005

16

17

18

19

20

21

22

03

2005

23

24

25

26

27

28

29

04

2005

30

31






05

2005



Method's work results in a new object of class
table with columns 0…6 plus columns week and year containing, respectively, number of week according to standard ISO 8601 and year it belongs to.


Copyright © 1997–2021 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 04.09.2008