Re: [HACKERS] [GENERAL] Anyone using "POSIX" time zone offset capability?

2006-10-17 Thread James Cloos
> "Tom" == Tom Lane <[EMAIL PROTECTED]> writes: Tom> The weird thing about this allegedly-POSIX notation is the combination Tom> of a symbolic name and a further offset from it. AIUI, it is not a further offset but rather (mostly-)redundant data specifying the exact offset from UTC¹ the text

Re: [HACKERS] [GENERAL] Anyone using "POSIX" time zone offset capability?

2006-10-17 Thread Sander Steffann
Hi, "Sander Steffann" <[EMAIL PROTECTED]> writes: What the datetime.c code is doing is trying to find the zoneabbrev in a built-in timezone table, and then adding the two together. This is simply wacko. I think that if anyone has ever tried to use this notation they would have noticed this

Re: [HACKERS] [GENERAL] Anyone using "POSIX" time zone offset capability?

2006-10-17 Thread Tom Lane
"Sander Steffann" <[EMAIL PROTECTED]> writes: >> What the datetime.c code is doing is trying to find the zoneabbrev >> in a built-in timezone table, and then adding the two together. >> This is simply wacko. > I think that if anyone has ever tried to use this notation they would have > noticed th

Re: [HACKERS] [GENERAL] Anyone using "POSIX" time zone offset capability?

2006-10-17 Thread Sander Steffann
Hi, The POSIX timezone notation as understood by the zic code includes the possibility of zoneabbrev[+-]hh[:mm[:ss]] but the meaning is that hh:mm:ss *is* the offset from GMT, and zoneabbrev is being defined as the abbreviation for that offset. What the datetime.c code is doing is trying to fi

Re: [HACKERS] [GENERAL] Anyone using "POSIX" time zone offset capability?

2006-10-16 Thread Tom Lane
I wrote: > ... I'm not entirely convinced that it really is a POSIX-sanctioned > notation, either --- the POSIX syntax the zic code knows about is > different. Actually, I take that back: it is a subset of the same notation, but the datetime.c code is misinterpreting the spec! The POSIX timezone

Re: [HACKERS] [GENERAL] Anyone using "POSIX" time zone offset capability?

2006-10-16 Thread Tom Lane
"Brandon Aiken" <[EMAIL PROTECTED]> writes: > What about time zones like Tehran (GMT+3:30), Kabul (GMT+4:30), Katmandu > (GMT+5:45) and other non-cardinal-hour GMT offsets? Is this handled in > some *documented* way already? Sure. This has worked since PG 7.2 or so: regression=# select '12:34:0

Re: [HACKERS] [GENERAL] Anyone using "POSIX" time zone offset capability?

2006-10-16 Thread Brandon Aiken
What about time zones like Tehran (GMT+3:30), Kabul (GMT+4:30), Katmandu (GMT+5:45) and other non-cardinal-hour GMT offsets? Is this handled in some *documented* way already? -- Brandon Aiken CS/IT Systems Engineer -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On B