niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » PostgreSQL
Multi Time Zone Select
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Karsten Hilbert
*nix forums addict


Joined: 01 Mar 2005
Posts: 91

PostPosted: Tue Mar 15, 2005 6:25 am    Post subject: Re: Multi Time Zone Select Reply with quote

Quote:
I load date information from different time zones into a single table.
My columns are defined 'timestamp(0) with time zone' and I'm loading
'2005-03-01 22:00:00-05:00' and '2005-03-01 23:00:00-06:00' for
example. I query this table and expect rows from all time zones and I
want to see the time zones in the result. But when I select he data all
rows return converted to my local time zone for each timezone. Since
this is a single query (select * ...) I don't know where to apply AT
TIME ZONE 'zone'. Is there a way to specify that I want the time data
presented according to the way the data is stored - by time zone?
If you look at the archives from, what, one day ago you'll

find a discussion and one possible solution.

Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org
Back to top
Vanole, Mike
*nix forums beginner


Joined: 14 Mar 2005
Posts: 1

PostPosted: Mon Mar 14, 2005 10:07 pm    Post subject: Multi Time Zone Select Reply with quote

Hi,

I load date information from different time zones into a single table.
My columns are defined 'timestamp(0) with time zone' and I'm loading
'2005-03-01 22:00:00-05:00' and '2005-03-01 23:00:00-06:00' for
example. I query this table and expect rows from all time zones and I
want to see the time zones in the result. But when I select he data all
rows return converted to my local time zone for each timezone. Since
this is a single query (select * ...) I don't know where to apply AT
TIME ZONE 'zone'. Is there a way to specify that I want the time data
presented according to the way the data is stored - by time zone?

Many thanks in advance.
Mike
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 8:00 am | All times are GMT
navigation Forum index » Databases » PostgreSQL
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Select statement Shamna Sybase 0 Mon Sep 17, 2007 6:03 am
No new posts Running php file everyday on scheduled time sachin PHP 1 Fri Jul 21, 2006 12:49 pm
No new posts ECPG (usage of simple select statement) Jasbinder Bali PostgreSQL 0 Fri Jul 21, 2006 3:28 am
No new posts Can't Select External Table from CSV File Resant Server 1 Fri Jul 21, 2006 2:45 am
No new posts Invalid syntax with STD() function when more than one fie... William Bronsema MySQL 1 Thu Jul 20, 2006 2:18 pm

Debt Consolidation | Mortgage | Internet Advertising | Car Finance | Debt Consolidation
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.5106s ][ Queries: 20 (0.2871s) ][ GZIP on - Debug on ]