The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

DateTime::Event::Jewish::Parshah - Calculate leyning for next shabbat

SYNOPSIS

 use DateTime::Event::Jewish::Parshah qw(parshah);

 my $parshah    = parshah(DateTime->today, $israel);

DESCRIPTION

Returns either a parshah name or a yom tov name for the Shabbat after the date supplied. The optional israel flag specifies whether to calculate the leyning for Israel or for the diaspora.

_initYomTov($year)

Internal function that initialises the yom tov table for the year in question.

nextShabbat($date)

Returns the next Shabbat which is strictly after $date. The returned object is a Hewbrew date.

$date is some sort of DateTime object; it does not matter which.

parshah($date ,[$israel])

Returns the parshah name or a yomtov name for the Shabbat strictly after $date.

$date is some sort of DateTime object; it does not matter which.

$israel is an optional flag to indicate that we should use the logic for Israel rather than the Diaspora.

See http://individual.utoronto.ca/kalendis/hebrew/parshah.htm for the logic of this code.

BUGS

DateTime::Calendar::Hebrew is not a sub-class of DateTime. It does not implement the all functionality of DateTime, and where it does implement it, it uses different names and interfaces. In particular, none of the arithmetic works.

AUTHOR

Raphael Mankin, <rapmankin at cpan.org>

BUGS

Please report any bugs or feature requests to bug-datetime-event-jewish at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=DateTime-Event-Jewish. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc DateTime::Event::Jewish

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

Copyright 2010 Raphael Mankin.

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.