On Wed, 26 Mar 2003, Tim Bunce wrote: > > > now_local() > > > now_utc() > > > today_local() > > > today_utc > > > > Why not have the constructors take any timezone as an argument? > > > > ->now( 'utc' ) > > > > or > > > > ->now( timezone => 'local' ) > > > > or even > > > > ->now( timezone => 'floating' ) > > > > If no arguments are specified you get still get UTC. > > You could, but I like the simplicity and clarity for these common cases.
yeah, but then we're bordering on a truly ridiculous number of constructors, most of which are just syntactic sugar. I'm afraid I'm going to go with Joshua's suggestion on this one. It "feels" right because the other constructors already take a time_zone parameter, so this one should too. -dave /*======================= House Absolute Consulting www.houseabsolute.com =======================*/
