Subject: | floating timezones are either buggy or poorly documented |
Date: | Thu, 8 Apr 2010 15:07:24 +0200 |
To: | bug-DateTime [...] rt.cpan.org |
From: | Michal Svoboda <michal.svoboda [...] agents.felk.cvut.cz> |
It seems that DateTime->now(time_zone => 'floating') constructs a
datetime object in the UTC timezone. For example ->hms reports time
minus the localtimezone offset.
Now, from all the available documentation it seems that 'floating' is
NOT UTC and should be used 'when you dont care about the timezone',
which is my case. I would thus expect the object to reflect LOCAL time
with the added benefit that '-1 day' works across DST changes (because
the timzeone is 'floating').
If this is not the case then please explain (also in the POD) how
_exactly_ floating functions and better yet how to achieve the -1 day
thingy. (I really don't care if its 02 or 03 o'clock, I just want to
know what date it was yesterday, 7 weeks ago, and so on.)
Message body not shown because it is not plain text.