NAME
DateTime::Span::Birth - Date span of birthdays for an age
SYNOPSIS
use DateTime::Span::Birth;
# birthday span for people who are 28 years old today
my $span = DateTime::Span::Birth->new(age => 28);
# birthday span for 20 years old in $dt
my $span = DateTime::Span::Birth->new(age => 28, on => $dt);
# birthday span for teenagers
my $span = DateTime::Span::Birth->new(from => 13, to => 19);
DESCRIPTION
DateTime::Span::Birth is a port of Date::Range::Birth module and works with DateTime::Span object. This module allows you to say "who is now 28 years old, based on thier bitrhday dates?"
This would be particularly useful when you build an SQL query to, say, select teenagers from your customers database which has 'birthday' datetime column.
AUTHOR
Tatsuhiko Miyagawa <miyagawa@bulknews.net>
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.