NAME
DateTime::Event::WarwickUniversity - Warwick University academic calendar events
SYNOPSIS
use DateTime::Event::WarwickUniversity;
my $dt = DateTime->new(day => 7, month => 5, year => 2005);
# 2005-09-26
my $dt_gr = DateTime::Event::Warwick->new_year_for_gregorian_year($dt);
# 2004-09-28
my $dt_ac = DateTime::Event::Warwick->new_year_for_academic_year($dt);
DESCRIPTION
DateTime::Event::WarwickUniversity is used to work with the academic calendar of the University of Warwick.
METHODS
new_year_for_gregorian_year
Takes as argument a single DateTime object.
Returns a DateTime object representing the first day of the academic calendar that begins in the same Gregorian year as the input.
new_year_for_academic_year
Takes as argument a single DateTime object.
Returns a DateTime object representing the first day of the same academic year as the input.
SEE ALSO
DateTime, DateTime::Calendar::WarwickUniversity
AUTHOR
Tim Retout <tim@retout.co.uk>
COPYRIGHT
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.