CREATE OR REPLACE FUNCTION core.is_leap_year(integer)
RETURNS boolean
LANGUAGE plpgsql
IMMUTABLE STRICT
AS $function$
BEGIN
RETURN (SELECT date_part('day', (($1::text || '-02-01')::date + '1 month'::interval - '1 day'::interval)) = 29);
END
$function$