pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vadim Nasardinov <vadimn@redhat.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Java's set of timezone names
Date: Wed, 20 Jul 2005 15:29:48 -0400
Message-ID: <200507201529.48152@vadim.nasardinov> (raw)
In-Reply-To: <200507201416.37925@vadim.nasardinov>
References: <90876a9e05071810503606d431@mail.gmail.com>
	<24020.1121881295@sss.pgh.pa.us>
	<200507201416.37925@vadim.nasardinov>

On Wednesday 20 July 2005 14:16, Vadim Nasardinov wrote:
> Sun's JDK's timezone info seems fairly different from what, say,
> Fedora Core distributes in its tzdata RPM:

More precisely, Sun's timezone info seems to be a strict subset of
Fedora's timezone info.  (This is for Sun's JDK 1.4.2_08 and Fedora
Core 3.  I didn't bother to check JDK 1.5.0 -- it does add three
additional timezones over what was present in 1.4.2: America/Bahia,
America/Campo_Grande, and America/Toronto.)

I added a couple of "grep -v" pipes to filter out irrelevant
differences:

 | $ find /usr/local/j2sdk1.4.2_08/jre/lib/zi -type f -printf '%P\n' | \
 |   grep -v ZoneInfoMappings | sort > /tmp/java-tzdata.txt 
 | $ find /usr/share/zoneinfo/ -type f -printf '%P\n' | \
 |   grep -v right/ | grep -vE '(right/|posix/|zone\.tab)' | \
 |   sort > /tmp/linux-tzdata.txt

This shows that the FC3 tzdata is a strict superset of the JDK 1.4.2
timezone info:

 | $ diff /tmp/java-tzdata.txt /tmp/linux-tzdata.txt  | grep -c '>'
 | 152
 | $ diff /tmp/java-tzdata.txt /tmp/linux-tzdata.txt  | grep -c '<'
 | 0

Whether or not this means that PostgreSQL on FC should be able to
handle any time zone that Java throws at it, I am not sure.



view thread (8+ messages)  latest in thread

Message-ID: <200507201529.48152@vadim.nasardinov>
Permalink:  ../200507201529.48152@vadim.nasardinov/
Also on:    postgresql.org/message-id/200507201529.48152@vadim.nasardinov

 · 

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-jdbc@postgresql.org
  Cc: vadimn@redhat.com
  Subject: Re: Java's set of timezone names
  In-Reply-To: <200507201529.48152@vadim.nasardinov>
  References: <90876a9e05071810503606d431@mail.gmail.com> <24020.1121881295@sss.pgh.pa.us> <200507201416.37925@vadim.nasardinov> <200507201529.48152@vadim.nasardinov>

* 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