ente/server/migrations/51_th_time_human.up.sql

10 lines
206 B
MySQL
Raw Permalink Normal View History

2024-03-01 08:07:01 +00:00
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;
$$;