Thread: Calendar help
View Single Post
Old 10-05-2009, 02:26 PM   #3 (permalink)
Tanax
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

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(32012);

// Gets current month(since we didn't specify a month) information year 2012
$calendar->month(false2012); 
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.
__________________
Tanax is offline  
Reply With Quote