At 11:12 PM -1000 1/8/03, Joshua Hoblitt wrote:
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 --------------------------------------------------------

Reply via email to