From lisp.linux at gmail.com Tue Dec 25 00:10:26 2007 From: lisp.linux at gmail.com (lisp linux) Date: Mon, 24 Dec 2007 16:10:26 -0800 Subject: [local-time-devel] storing in db Message-ID: <47704A72.9030306@gmail.com> Hi I plan to store the day and seconds in a db So my question is, can I rely on the epoch (Mar 1, 2000) not changing or assume the probability of that is practically zero at this point. Thanks, -Antony From dlowe at bitmuse.com Tue Dec 25 02:03:44 2007 From: dlowe at bitmuse.com (Daniel Lowe) Date: Mon, 24 Dec 2007 21:03:44 -0500 Subject: [local-time-devel] Re: storing in db Message-ID: <47706500.9000306@bitmuse.com> > I plan to store the day and seconds in a db > So my question is, can I rely on the epoch (Mar 1, 2000) not changing > or assume the probability of that is practically zero at this point You can rely on the epoch not changing. However, as a practical matter, you should really be using the timestamp data type of your database. : Daniel : From attila.lendvai at gmail.com Tue Dec 25 02:17:19 2007 From: attila.lendvai at gmail.com (Attila Lendvai) Date: Tue, 25 Dec 2007 03:17:19 +0100 Subject: [local-time-devel] Re: storing in db In-Reply-To: <47706500.9000306@bitmuse.com> References: <47706500.9000306@bitmuse.com> Message-ID: > You can rely on the epoch not changing. However, as a practical matter, you > should really be using the timestamp data type of your database. you may want to look at postmodern if you are about to use an excellent opensource db. we have a branch that uses local-time for dates and timestamps, not yet merged into the official. it's at http://common-lisp.net/project/cl-dwim/darcs/postmodern/ you may also try cl-rdbms which is a server independent lib, currently it only has an oracle and a postgres backend (using the above mentioned postmodern). hth, -- attila