Calendar::Model::Day - Simple class modelling Calendar day
my $cal = Calendar::Model->new(selected_date=>DateTime->new(day=>3, month=>1, year=>2013));
my $day2 = $cal->weeks->[0][2];
$day2->dow_name; # 'Tuesday'
$day2->day_of_week; # 3
$day2->dd; # '01'
$day2->yyyy; # '2013'
$day->to_DateTime; # DateTime object
Class constructor method, returns a Calendar::Model::Day object based on the arguments :
Std Moose initialisation hook called by constructor method
Object method, returns a DateTime object built from the days attributes
Copyright 2012 Aaron Trevena.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Calendar::Model, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Calendar::Model
CPAN shell
perl -MCPAN -e shell install Calendar::Model
For more information on module installation, please visit the detailed CPAN module installation guide.