develooper Front page | perl.datetime | Postings from July 2017

Re: How to tell (in advance) if a date-time is ambiguous?

Thread Previous | Thread Next
From:
Karen Etheridge
Date:
July 13, 2017 13:04
Subject:
Re: How to tell (in advance) if a date-time is ambiguous?
Message ID:
CAPJsHfCVTK0eaRNT3MNn5OEcqV3f_i-b=Q5TRzR92hDvRbsf0g@mail.gmail.com
On Tue, Jul 11, 2017 at 1:46 AM, Binarus <lists@binarus.de> wrote:
> But if the application misbehaves because there is no correct time zone
> data available at that moment, I won't get into trouble. No reasonable
> person can expect that applications doing calculations on local dates
> and times behave correctly if a time zone / DST change is announced just
> a day before it actually happens.

Depending on what "reasonable people" assume often gets
‚Äčone into surprisingly
unreasonable positions.

> As far as i know, it is consensus in most legal systems that it is
> perfectly acceptable to use the time zone data which is currently
> available for your O/S for time calculations (provided that you update
> the O/S regularly using the appropriate mechanism).

I am not aware of a single legal system that sets out *anything* to do with
an operating system whatsoever, let alone what might be acceptable
parameters
for the functioning of such software.  Legal systems deal in absolutes,
and care not whether something is calculated on paper or through another
means:
"my computer couldn't figure it out" is not a reasonable excuse.

These lists are also insightful:
http://infiniteundo.com/post/25326999628/falsehoods-programmers-believe-about-time

http://infiniteundo.com/post/25509354022/more-falsehoods-programmers-believe-about-time

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About