Since from_epoch() already supports Time::HiRes I was thinking that a class method to set use of this would be handy.
Something like:
DateTime->hires( 1 );
Alternatively you could just test for it in places where it would be useful (which are ...?):
if ($INC{'Time/HiRes.pm'}) {
# Work in HiRes
}This means that if the user has loaded Time::HiRes, then we can use it. Otherwise we dont.
Just a thought.
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 --------------------------------------------------------
