Sql Year Date Function In Python Definition