pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steve Crawford <scrawford@pinpointresearch.com>
To: DHS Webmaster <webmaster@dhs-club.com>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: bizarre AGE behaviour
Date: Wed, 3 Mar 2004 10:00:05 -0800
Message-ID: <200403031000.05524.scrawford@pinpointresearch.com> (raw)
In-Reply-To: <40461395.5324CFEE@dhs-club.com>
References: <40461395.5324CFEE@dhs-club.com>

On Wednesday 03 March 2004 9:19 am, DHS Webmaster wrote:
> We began encountering some unexpected date related errors this 
week...
<snip>
> This is good...
> network=# select age('04-01-04','03-01-04');
>   age
> -------
>  1 mon
> (1 row)
>
> This isn't...
> network=# select age('05-01-04','03-01-04');
>          age
> ---------------------
>  1 mon 30 days 23:00
> (1 row)
>
> Now it gets really strange......
> network=# select age('06-01-04','04-01-04');
>          age
> ---------------------
>  1 mon 29 days 23:00
> (1 row)
>
> This may have been addressed in the past (I subscribe to this list)
> and I just missed it, but is there a simple fix for this problem?
> Thanks.

It was originally addressed long in the past (1784, Paris by Benjamin 
Franklin): http://webexhibits.org/daylightsaving/

US Daylight Saving Time starts this year on April 4 when 0200 jumps to 
0300. The answers PostgreSQL gave are correct.

Cheers,
Steve




view thread (5+ messages)  latest in thread

Message-ID: <200403031000.05524.scrawford@pinpointresearch.com>
Permalink:  ../200403031000.05524.scrawford@pinpointresearch.com/
Also on:    postgresql.org/message-id/200403031000.05524.scrawford@pinpointresearch.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: scrawford@pinpointresearch.com, webmaster@dhs-club.com
  Subject: Re: bizarre AGE behaviour
  In-Reply-To: <200403031000.05524.scrawford@pinpointresearch.com>
  References: <40461395.5324CFEE@dhs-club.com> <200403031000.05524.scrawford@pinpointresearch.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox