mirror of
https://github.com/ente-io/ente.git
synced 2025-05-24 03:59:22 +00:00
10 lines
206 B
PL/PgSQL
10 lines
206 B
PL/PgSQL
create or replace function th(epochTimeinMircoSeconds bigint)
|
|
returns TIMESTAMP WITH TIME ZONE
|
|
language plpgsql
|
|
as
|
|
$$
|
|
begin
|
|
return to_timestamp(cast(epochTimeinMircoSeconds/1000000 as bigint));
|
|
end;
|
|
$$;
|