Search Postgresql Archives

timestamp check

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

 




select current_timestamp-to_timestamp(to_char(current_date,'YYYY-MM-DD HH24'||':'||'MI'||':'||'SS')||' '||(SELECT utc_offset  FROM pg_catalog.pg_timezone_names  
WHERE name='US/Eastern'),'YYYY-MM-DD HH24'||':'||'MI'||':'||'SS')::timestamptz;

it's not displaying timezone..any help..?


[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 Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux