10-05-2009, 02:26 PM
|
#3 (permalink)
|
|
The Prestige
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
|
I understand the concept of it, but.. how would I do so I can call it like:
PHP Code:
// Gets current month information $calendar->month();
// Gets Mars month information(current year since we didn't specify a year) $calendar->month(3);
// Gets Mars month information year 2012 $calendar->month(3, 2012);
// Gets current month(since we didn't specify a month) information year 2012 $calendar->month(false, 2012);
In order for that to work, I would have to get the current timestamp and somehow calculate how many months differs between current month and the month specified(or year specified).. ?
I understand the concept you posted, I just don't know how to.. apply it to what I want.
__________________
|
|
|
|