Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > PostgreSQL > database date time format

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-23-07, 01:38
chxxangie chxxangie is offline
Registered User
 
Join Date: Nov 2007
Posts: 1
database date time format

2007-11-23 11:10:37.865588+08

what is the meaning of behind part ".865588+08" ?
and how to set it???
Reply With Quote
  #2 (permalink)  
Old 11-23-07, 04:31
shammat shammat is online now
Registered User
 
Join Date: Nov 2003
Posts: 654
As those are microseconds I assume that this is simply the scientific notation for the number of microseconds.
So you have .865588 * 10^8 microseconds which computes to 86558800.

Check out the comments about microseconds in the manual
Quote:
Originally Posted by manual
The seconds field, including fractional parts, multiplied by 1 000 000. Note that this includes full seconds.

SELECT EXTRACT(MICROSECONDS FROM TIME '17:12:28.5');
Result: 28500000
Reply With Quote
  #3 (permalink)  
Old 11-26-07, 13:21
amthomas amthomas is offline
Registered User
 
Join Date: May 2005
Location: San Antonio, Texas
Posts: 134
from docs:

Quote:
TIMESTAMP '2004-10-19 10:23:54'

is a timestamp without time zone, while

TIMESTAMP '2004-10-19 10:23:54+02'

is a timestamp with time zone. PostgreSQL never examines the content of a literal string before determining its type, and therefore will treat both of the above as timestamp without time zone. To ensure that a literal is treated as timestamp with time zone, give it the correct explicit type:

TIMESTAMP WITH TIME ZONE '2004-10-19 10:23:54+02'

http://www.postgresql.org/docs/8.2/s...-datetime.html
__________________
Vi veri veniversum vivus vici
By the power of truth, I, a living man, have conquered the universe
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On