DateTime::Calendar::WarwickUniversity - Warwick University academic calendar
use DateTime::Calendar::WarwickUniversity; my $dt = DateTime::Calendar::WarwickUniversity->new( year => 2007, month => 01, day => 8, ); # 15 print $dt->academic_week; # 11 print $dt->term_week; # 2, 1 print join(', ', $dt->term_and_week);
DateTime::Calendar::WarwickUniversity is used for working with the academic calendar in use at the University of Warwick.
Takes no argument.
Returns the academic week for the current object, in the range 1..53.
Returns a list ($term, $week) for the current object. $term is either in the range 1..3, or one of 'C', 'E' or 'S', representing the Christmas, Easter and Summer holidays. $week is in the range 1..10.
Returns the term week for the current object, in the range 1..30, or undef if the date does not fall within a term week.
DateTime, DateTime::Event::WarwickUniversity
Tim Retout <tim@retout.co.uk>
Copyright (C) 2006, 2007 by Tim Retout
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.4 or, at your option, any later version of Perl 5 you may have available.
To install DateTime::Calendar::WarwickUniversity, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DateTime::Calendar::WarwickUniversity
CPAN shell
perl -MCPAN -e shell install DateTime::Calendar::WarwickUniversity
For more information on module installation, please visit the detailed CPAN module installation guide.