I vote that you assume the next valid instance of the time (e.g. if they say 4 o'clock and it is 11 PM now, assume 4AM of the following day).
A possibly good idea for the parse_datetime() method. This means the method returns a valid DateTime which is what it does in every other module
I also returned additional items in array context, the first was the DT object and the additional items described what was parsed so if the person cared about time only in some cases they could tell them apart from the fully specified items.
I like this idea .. we'd have something like:
$hashref = hash_datetime($natural) %hash = hash_datetime($natural)
(Any better suggestions than hash_datetime?) It could also be something for other format modules to implement.
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
--------------------------------------------------------
