Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Repository for CPAN distribution DateTime-Subspan-Weekly
Perl
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/DateTimeX/Subspan
t
Changes
LICENSE
MANIFEST
MANIFEST.SKIP
Makefile.PL
README
Todo

README

README for DateTimeX::Subspan::Weekly

DateTimeX::Subspan::Weekly - Determine whether event falls within weekly
recurring range

    use DateTimeX::Subspan::Weekly qw( in_range );

    $rv = in_range( {
        starting_date   => $starting_date,  # Hash ref
        range           => $range_ref,      # Hash ref
        target          => $dt,             # DateTime object
    } );

Suppose that a 'week' can begin at an arbitrarily chosen day of the week
and time of day. Suppose further that that week can be divided into two
subspans: one in which an event is permitted to occur, and the other in
which the event is not permitted to occur.

DateTimeX::Subspan::Weekly provides functions to determine a particular
date falls in the permitted range or not.

Call 'perldoc lib/DateTimeX/Subspan/Weekly.pm' for more documentation.

You can install this module with:

    perl Makefile.PL
    make
    make test
    make install

If you are on a windows box you should use 'nmake' rather than 'make'.
Something went wrong with that request. Please try again.