import { date } from "https://deno.land/x/postgres@ls/deps.ts";
const { isLeap } = date;
Check given year is a leap year or not. based on : https://docs.microsoft.com/en-us/office/troubleshoot/excel/determine-a-leap-year
Parameters
year: Date | number
year in number or Date format