Skip to content
Snippets Groups Projects
Commit ea8a1173 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Calendar: Added some more doc.

parent 67ac03ce
Branches
No related tags found
No related merge requests found
......@@ -848,8 +848,14 @@ class YMD
// days
//! method int number_of_days()
//! Get the number of days in the current range.
int number_of_days();
//! method array(Day) days(int|void from, int|void to)
//! Get the days in the current range.
array(cDay) days(void|int from, void|int to)
{
int n=number_of_days();
......@@ -896,6 +902,12 @@ class YMD
return res;
}
//! method Day day()
//! method Day day(int n)
//! Get day number n in the current range.
//!
//! If n is negative, it is counted from the end of the range.
cDay day(void|int m, mixed... ignored)
{
if (undefinedp (m)) m=1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment