Annotation: core.is_leap_year

CREATE OR REPLACE FUNCTION core.is_leap_year(integer)
RETURNS boolean

Information: core.is_leap_year

Schema core
Function Name is_leap_year
Arguments integer
Owner postgres
Result Type boolean
Description

Implementation: core.is_leap_year

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$