On Sunday, August 10, 2003, at 01:34 PM, Dave Rolsky wrote:
On Sun, 10 Aug 2003, John Siracusa wrote:
...speaking of which, is there any chance DateTime->now() can be changed to
default to the "local" time zone? It seems to me that "now" probably means
"now, here" most of the time. I don't have a single call to now() that
doesn't include time_zone => 'local'.

This doesn't seem like a good idea, since it's not backwards compatible and since 'local' may not work on every single platform.

Well, it is version 0.1x after all... ;)


Okay, so maybe a new constructor then? DateTime->localtime()? Getting the current local time seems more common than, say, constructing a DateTime object from a day of the year, IMO :)

-John



Reply via email to