DateTimeX-ISO8601-Interval
view release on metacpan or search on metacpan
DateTime-ISO8601-Interval-0.003/README view on Meta::CPAN
(having neither an explicit start or end date) this parameter will
be used as the start date.
* until - specify a specific DateTime to stop returning new intervals.
Similar to "end", this attribute is exclusive. That is, once the
iterator reaches a point where the interval being returned
"contains" this value, an "undef" is returned and the iterator stops
returning new intervals.
The iterator returned optionally accepts a single argument that can be
used to indicate the number of iterations to skip on that call. For
instance:
my $monthly = DateTimeX::ISO8601::Interval->parse('R12/2013-01-01/P1M');
my $iterator = $monthly->iterator;
while(my $month = $iterator->(2)) {
# $month would be Feb, Apr, Jun, etc
}
contains
Returns a boolean indicating whether the provided date (either an "ISO
DateTime-ISO8601-Interval-0.003/README.mkdn view on Meta::CPAN
object if this [DateTimeX::ISO8601::Interval](https://metacpan.org/pod/DateTimeX::ISO8601::Interval) is defined only by a
duration (having neither an explicit start or end date) this parameter
will be used as the start date.
- until - specify a specific [DateTime](https://metacpan.org/pod/DateTime) to stop returning new
intervals. Similar to ["end"](#end), this attribute is **exclusive**. That is,
once the iterator reaches a point where the interval being returned
["contains"](#contains) this value, an `undef` is returned and the iterator stops
returning new intervals.
The iterator returned optionally accepts a single argument that can be used to indicate the
number of iterations to skip on that call. For instance:
my $monthly = DateTimeX::ISO8601::Interval->parse('R12/2013-01-01/P1M');
my $iterator = $monthly->iterator;
while(my $month = $iterator->(2)) {
# $month would be Feb, Apr, Jun, etc
}
## contains
Returns a boolean indicating whether the provided date (either an `ISO
DateTime-ISO8601-Interval-0.003/lib/DateTimeX/ISO8601/Interval.pm view on Meta::CPAN
=item * until - specify a specific L<DateTime> to stop returning new
intervals. Similar to L</end>, this attribute is B<exclusive>. That is,
once the iterator reaches a point where the interval being returned
L</contains> this value, an C<undef> is returned and the iterator stops
returning new intervals.
=back
The iterator returned optionally accepts a single argument that can be used to indicate the
number of iterations to skip on that call. For instance:
my $monthly = DateTimeX::ISO8601::Interval->parse('R12/2013-01-01/P1M');
my $iterator = $monthly->iterator;
while(my $month = $iterator->(2)) {
# $month would be Feb, Apr, Jun, etc
}
=head2 contains
Returns a boolean indicating whether the provided date (either an C<ISO
(having neither an explicit start or end date) this parameter will
be used as the start date.
* until - specify a specific DateTime to stop returning new intervals.
Similar to "end", this attribute is exclusive. That is, once the
iterator reaches a point where the interval being returned
"contains" this value, an "undef" is returned and the iterator stops
returning new intervals.
The iterator returned optionally accepts a single argument that can be
used to indicate the number of iterations to skip on that call. For
instance:
my $monthly = DateTimeX::ISO8601::Interval->parse('R12/2013-01-01/P1M');
my $iterator = $monthly->iterator;
while(my $month = $iterator->(2)) {
# $month would be Feb, Apr, Jun, etc
}
contains
Returns a boolean indicating whether the provided date (either an "ISO
README.mkdn view on Meta::CPAN
object if this [DateTimeX::ISO8601::Interval](https://metacpan.org/pod/DateTimeX::ISO8601::Interval) is defined only by a
duration (having neither an explicit start or end date) this parameter
will be used as the start date.
- until - specify a specific [DateTime](https://metacpan.org/pod/DateTime) to stop returning new
intervals. Similar to ["end"](#end), this attribute is **exclusive**. That is,
once the iterator reaches a point where the interval being returned
["contains"](#contains) this value, an `undef` is returned and the iterator stops
returning new intervals.
The iterator returned optionally accepts a single argument that can be used to indicate the
number of iterations to skip on that call. For instance:
my $monthly = DateTimeX::ISO8601::Interval->parse('R12/2013-01-01/P1M');
my $iterator = $monthly->iterator;
while(my $month = $iterator->(2)) {
# $month would be Feb, Apr, Jun, etc
}
## contains
Returns a boolean indicating whether the provided date (either an `ISO
lib/DateTimeX/ISO8601/Interval.pm view on Meta::CPAN
=item * until - specify a specific L<DateTime> to stop returning new
intervals. Similar to L</end>, this attribute is B<exclusive>. That is,
once the iterator reaches a point where the interval being returned
L</contains> this value, an C<undef> is returned and the iterator stops
returning new intervals.
=back
The iterator returned optionally accepts a single argument that can be used to indicate the
number of iterations to skip on that call. For instance:
my $monthly = DateTimeX::ISO8601::Interval->parse('R12/2013-01-01/P1M');
my $iterator = $monthly->iterator;
while(my $month = $iterator->(2)) {
# $month would be Feb, Apr, Jun, etc
}
=head2 contains
Returns a boolean indicating whether the provided date (either an C<ISO
( run in 1.604 second using v1.01-cache-2.11-cpan-71847e10f99 )