Javascript Get Year Function In Python Example