Cool, that is the method that I have started on. -ben
On Thu, Jul 03, 2003 at 01:03:09PM -0500, Dave Rolsky wrote: > On Thu, 3 Jul 2003, Ben Bennett wrote: > > > There is a lot to work out, but once the interface is clear it should > > be very quick to implement. > > > > Do you have any suggestions for what the interface should be or should > > I just take a whack at it and see what people think? > > Probably for unambiguous cases we should just allow: > > $iso->parse_datetime($string) > > For more complex cases we can do: > > $iso->parse_datetime( datetime => $string, > ... # extra params > ) > > This probably works better than many methods, in this case, because there > seem to be many combinations of different parameters (format, base object, > timezone, etc.) so trying to method-ize those would generate a ridiculous > number of methods. > > > -dave > > /*======================= > House Absolute Consulting > www.houseabsolute.com > =======================*/