51_th_time_human.up.sql 206 B

123456789
  1. create or replace function th(epochTimeinMircoSeconds bigint)
  2. returns TIMESTAMP WITH TIME ZONE
  3. language plpgsql
  4. as
  5. $$
  6. begin
  7. return to_timestamp(cast(epochTimeinMircoSeconds/1000000 as bigint));
  8. end;
  9. $$;