-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: PostgreSQL TimeStamp vs. Unix-Timestamp
PostPosted: Tue Jun 22, 2004 9:59 am 
Beginner
Beginner

Joined: Tue May 11, 2004 8:24 am
Posts: 23
Hi,

can anyone help me with my little decision about what SQL-Type to use, either a TIMESTAMP or, as I used to until now, UnixTimestamp = Long.

Mainly I use it for creation/changed dates of my records, as well as some start/ending date and time of a event table.

What are the pros and cons of either one?

I do not like the nasty syntax of SQL-TIMESTAMP, e.g. when accessing the db from php:

select timestamp '1970-01-01' + interval '953559481 seconds';

But I do like the verbosity of the raw data.

Any ideas, hints about this discussion?

Regards,

Alex


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.