CREATE OR REPLACE FUNCTION public.trytz(integer)
 RETURNS SETOF record
 LANGUAGE plpgsql
AS $function$
declare
	tz int;
	vartime timestamptz;
	base timestamptz;
begin
	base := make_timestamptz(1987, 2, 14, 12, 25, 00, '00');
	for tz in - $1 .. $1 loop
	begin
		vartime := make_timestamptz(1987, 2, 14, 12, 25, 00, tz::text);
		return next (tz, vartime, vartime - base);
	exception when others then null;
	end;
	end loop;
end;
$function$;
