Re: [GENERAL] Format string for ISO-8601 date and time

2009-02-26 Thread Pavel Stehule
2009/2/26 Daniel Verite : >        Pavel Stehule wrote: > >> > Is there a format string for to_char(timestamptz, text) that would > > output a >> >> > timestamp in full ISO-8601 format? That is, something like >> > 1977-04-22T01:00:00-05:00 >> > >> > I can't find a way to extract the offset against

Re: [GENERAL] Format string for ISO-8601 date and time

2009-02-26 Thread Daniel Verite
Sam Mason wrote: 1) values of type "timestamp with time zone" are always converted to UTC (either using the timezone specified or using the session's current "timezone" value) and then when they're sent back to the value is then corrected to the session's timezone (or an expli

Re: [GENERAL] Format string for ISO-8601 date and time

2009-02-26 Thread Daniel Verite
Pavel Stehule wrote: > Is there a format string for to_char(timestamptz, text) that would output a > timestamp in full ISO-8601 format? That is, something like > 1977-04-22T01:00:00-05:00 > > I can't find a way to extract the offset against GMT from the docs here: > http://www.postg

Re: [GENERAL] Format string for ISO-8601 date and time

2009-02-26 Thread Sam Mason
On Thu, Feb 26, 2009 at 10:50:18AM +0100, Daniel Verite wrote: > Is there a format string for to_char(timestamptz, text) that would > output a timestamp in full ISO-8601 format? That is, something like > 1977-04-22T01:00:00-05:00 If I'm understanding correctly, that's a bit awkward to do. PG on

Re: [GENERAL] Format string for ISO-8601 date and time

2009-02-26 Thread Pavel Stehule
Hello 2009/2/26 Daniel Verite : > Hi, > > Is there a format string for to_char(timestamptz, text) that would output a > timestamp in full ISO-8601 format? That is, something like > 1977-04-22T01:00:00-05:00 > > I can't find a way to extract the offset against GMT from the docs here: > http://www.p

[GENERAL] Format string for ISO-8601 date and time

2009-02-26 Thread Daniel Verite
Hi, Is there a format string for to_char(timestamptz, text) that would output a timestamp in full ISO-8601 format? That is, something like 1977-04-22T01:00:00-05:00 I can't find a way to extract the offset against GMT from the docs here: http://www.postgresql.org/docs/8.3/static/functions-f