print join("\n",DateTime::Trivia->all($dt));
Which would display (for March 23rd)
national diabetes alert day in the USA "dia del mar" martyrdom day love your body day anniversary of patrick henry's "give me liberty" speech Richard Greico's birthday (1965, Television) Joan Crawford's birthday (1904, Movies) etc... (these are not confimed .. all are from googlism)
Also available:
@birthdays = DateTime::Trivia->birthdays($dt);
foreach $person(@birthdays) {
printf("%04d: %s, %s\n", @{$person});
}Which would print: 1904: Joan Crawford, Movies 1965: Richard Greico, Television 0728: Nobody Really, Monk 1928: Mythical President, US President
Not to mention: DateTime::Trivia->local($dt);
Which would look at $dt's timezone and return only local trivia for the day
What's people's thoughts? Maybe it should be DateTime::Event::Trivia, although it doesn't adhere to the next/previous/closest API
Cheers!
Rick
--
--------------------------------------------------------
There are 10 kinds of people:
those that understand binary, and those that don't.
--------------------------------------------------------
The day Microsoft makes something that doesn't suck
is the day they start selling vacuum cleaners
--------------------------------------------------------
"Write a wise proverb and your name will live forever."
-- Anonymous
--------------------------------------------------------
