pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ken Johanson <pg-user@kensystem.com>
To: andrew@supernews.com
Cc: pgsql-sql@postgresql.org
Subject: Re: definative way to place secs from epoc into timestamp
Date: Fri, 04 Mar 2005 08:20:24 -0700
Message-ID: <42287CB8.7040600@kensystem.com> (raw)
In-Reply-To: <slrnd2g2nm.29om.andrew+nonews@trinity.supernews.net>
References: <1109780719.28180.86.camel@bretsony>
	<13089.1109793126@sss.pgh.pa.us>
	<1109794066.27857.100.camel@bretsony>
	<13466.1109795186@sss.pgh.pa.us>
	<1109828560.27905.137.camel@bretsony>
	<2bf00b6e6300e2c76bc3c09fa89e7913@myrealbox.com>
	<1109834845.27905.147.camel@bretsony>
	<slrnd2euj5.29om.andrew+nonews@trinity.supernews.net>
	<1109915231.28180.182.camel@bretsony>
	<slrnd2g2nm.29om.andrew+nonews@trinity.supernews.net>

>>and the fact that  I want the same value from the data base that I put
>>into it.
> 
> 
> "same" in which sense? The same absolute point in time? Or the same point
> on a calendar? Obviously if the timezone doesn't change, then the two are
> equivalent; but which one is your application actually looking for? (If
> your app is using Unix epoch times, then it's looking only at the absolute
> time and not the calendar time...)
> 

Unix time stamps, short (int) or long res, are always supposed to GMT 
based, as far as I know - I never seen anything different, except maybe 
in homebrew software. So it should be both calendar and P.I.T. And you 
wouldn't need the TZ storage if the date-number and number-> translation 
itself takes the TZ arg so that it can localize the Human String for you.

Ken





view thread (19+ messages)  latest in thread

Message-ID: <42287CB8.7040600@kensystem.com>
Permalink:  ../42287CB8.7040600@kensystem.com/
Also on:    postgresql.org/message-id/42287CB8.7040600@kensystem.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: pg-user@kensystem.com, andrew@supernews.com
  Subject: Re: definative way to place secs from epoc into timestamp
  In-Reply-To: <42287CB8.7040600@kensystem.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