Google Apps Script has had this functionality for years. <a href="https:&#x2F;&#x2F;developers.google.com&#x2F;apps-script&#x2F;guides&#x2F;triggers&#x2F;" rel="nofollow">https:&#x2F;&#x2F;developers.google.com&#x2F;apps-script&#x2F;guides&#x2F;triggers&#x2F;</a><p>Disclaimer: I work for Google.