On Mon, 24 Nov 2003, Joshua Hoblitt wrote: > On Mon, 24 Nov 2003, Dave Rolsky wrote: > > > Yeah, I agree. I was just saying that if people wanted to be able to ask > > how many leap seconds a particular datetime object included, I could add a > > method for that. > > I miss-understood your first statement. I think that's an excellent > idea. Perhaps a has_leapseconds() method that returns a boolean value > would also be useful.
If it returns an integer that's basically the same as returning a boolean: if ( $dt->leap_seconds ) { ... } -dave /*======================= House Absolute Consulting www.houseabsolute.com =======================*/