Hey Everyone!

A while back Dave asked us about timezones and should setting a timezone
move the internal representation or the external. We all agreed on the
external. Mainly because we couldn't think of a use for internal. Well, for
the first time ever, I'm using DateTime and I need to change the INTERNAL!
LOL!

What I'm trying to work out is the time difference a particular timezone is.

The following is how I figured I'd do this:
$rth = DateTime->now;
$here = $rth->clone;
$rth->set_time_zone('Australia/Melbourne');
$diff = $rth-$here;

However that doesn't work because the internal stays exactly the same! The
Diff returns 0!

Now maybe we need $rth->move_internal_timezone('Australia/Melbourne');

Or I need to figure some other way of doing this. (Any help on a workaround
would be great)

Cheers!
Rick Measham



--------------------------------------------------------
�� � � � � � 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
--------------------------------------------------------


Reply via email to