aboutsummaryrefslogtreecommitdiff
path: root/res/sql/functions/pg_current_datetime.sql
blob: 75b1b96db7b99d36edd4d72301346ed396592f6a (plain)
1
2
3
4
5
6
7
8
9
10
CREATE OR REPLACE FUNCTION current_datetime()
  RETURNS TIMESTAMP WITH TIME ZONE
AS '
BEGIN

--RETURN to_timestamp(''2014-01-01'', ''YYYY-MM-DD'');
  RETURN now();

END;
' LANGUAGE plpgsql;