On Fri, Feb 20, 2009 at 2:39 AM, David Green <david.gr...@telus.net> wrote:
> Why can't we just have time() that takes a :tz adverb and dispense with
> gmtime() and localtime()?

It depends on what sort of value time() returns.  In the caes of
Perl5, the return value is completely independent of time zone.  You
have to take the time zone into account only when translating to a
human-readable form.  In that case, it makes no sense for time() to
have a :tz adverb.

If an Instant object also represents a point in time irrespective of
location, then there's likewise no point in a :tz adverb.

-- 
Mark J. Reed <markjr...@gmail.com>

Reply via email to