5

I need to convert now() to GMT0.

SELECT now();

should output current time in GMT0. Is it possible without changing time zone? And using only one select statement?

Thanks in advance for you help.

Panos Kalatzantonakis
  • 12,525
  • 8
  • 64
  • 85

1 Answers1

13

The function utc_timestamp should do what you want.

SELECT utc_timestamp();
Henrik Ripa
  • 595
  • 8
  • 24