[Datetime-SIG] Clearing up terminology

ISAAC J SCHWABACHER ischwabacher at wisc.edu
Thu Jul 30 16:48:05 CEST 2015


> From: Datetime-SIG <datetime-sig-bounces+ischwabacher=wisc.edu at python.org> on behalf of Alexander Belopolsky <alexander.belopolsky at gmail.com>
> Sent: Wednesday, July 29, 2015 19:27
> To: Felipe Ochoa
> Cc: datetime-sig
> Subject: Re: [Datetime-SIG] Clearing up terminology
> 
> On Wed, Jul 29, 2015 at 5:31 PM, Felipe Ochoa
> <felipe.nospam.ochoa at gmail.com> wrote:
> > * Time zone: "a mapping from UTC instants to offsets"
> >
> > * Offset: "simply the difference between UTC and local time."
> >
> > * ZonedDatetime: An instant + a time zone
> >
> > * OffsetDatetime: An instant + an offset (which is not the same as a
> > ZonedDatetime!)
> >
> > * LocalDatetime: A date/time in the usual "naive" sense: a combination of
> > year, month, day, hour, minute, second, millisecond (soon to be nano?)
> 
> Given this terminology and the following UNIX date utility invocation,
> 
> $ TZ=Australia/Melbourne date +"%c%z"
> Thu 30 Jul 2015 10:21:18 AM EST+1000
> 
> what is (a) Australia/Melbourne, (b) EST?

Australia/Melbourne is a time zone, +1000 is an offset, and EST is an accident waiting to happen.

ijs


More information about the Datetime-SIG mailing list