|
Free Stuff: links: Neue Surf Tips : know-how : Zitate : Spam Strike : HTML Checker! : Link Checker : Cartoons About IC: friends: lust und frust : guestbook : what's new |
|
[ up ] postgresql/datetime-appendix.htmldeveloper.postgresql.org/docs/postgres/functions-datetime.html SET TIMEZONE TO 'PST'; SET TIMEZONE TO 'CETDST'; SELECT now()::date; SELECT now()::time; SELECT now()::timetz; SELECT now()::abstime; 2003-12-02 02:51:20-08 Postgres built-in date and time calculation functionsSELECT now()::date + INTERVAL '1 DAY'; SELECT now()::date + INTERVAL '3 DAYS'; SELECT now()::time + INTERVAL '9 HOURS'; Geek Problem: is of type abstime but expression is of type time without time zone Time ZonesPostgres obtains time zone support from the underlying operating system. All dates and times are stored internally in Universal Coordinated Time (UTC), alternately known as Greenwich Mean Time (GMT). Times are converted to local time on the database server before being sent to the client frontend, hence by default are in the server time zone. There are several ways to affect the time zone behavior:
|
|||||||
|
Know-How home
| Must Read
| What's new?
| iC Site Map link search |
©1998-2004 infoCopter
|