Search Postgresql Archives

Changing displayed time zone in RAISE NOTICE output?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



How do I get clock_timestamp() to display the time in a different time zone?

This is America/Chicago, but I'd like to display it in a different TZ.

psql (12.12 (Ubuntu 12.12-1.pgdg18.04+1))
postgres=# DO $$
postgres$# BEGIN
postgres$# RAISE NOTICE '%', clock_timestamp();
postgres$# END$$;
NOTICE:  2023-01-11 14:52:34.408225-06
DO

--
Born in Arizona, moved to Babylonia.





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux