> Alternatively you could just test for it in places where it would beuseful (which are ...?):
if ($INC{'Time/HiRes.pm'}) { # Work in HiRes }
The only place it matters inside DT (from_epoch) already supports it.
This means that if the user has loaded Time::HiRes, then we can use it. Otherwise we dont.
That doesn't make it very easy to say "I want an object that represents the time 'right now' with sub second resolution".
What I'm proposing is like the Net::Ping syntax but at the class level.
So you're only suggesting it as a part of the now() call? If that's the case why not have:
$dt = DateTime->now();
and
$dt = DateTime->now_high_res(); or $dt = DateTime->now( high_res=>1 );
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 --------------------------------------------------------
