title: Is there a way to parse time so that it executes code only once in a given timeframe?
body: <p>Let's say I'm listening whether a random event has happened. (Specifically I'm doing this via a webhook. After I receive a webhook, I execute code)</p>
  <p>I do not want my webhook event to execute code more than once in a given timeframe, e.g. 30 minutes.
  However, I <strong>don't</strong> mean it in this way:</p>
  <pre><code>&quot;Received webhook?&quot; 
  &quot;Wait 30 minutes until you can listen to webhooks again.&quot; 
  </code></pre>
  <p>Somehow I'd like to split the 24hrs of the day into <em>48 <strong>parts</strong> of 30 minutes</em>, and then the webhook can activate it's event only once in a given <em>part</em>. [for clarification: if it was 20mins then there would be 72 parts of 20mins]</p>
  <p><strong>For example:</strong> The code activates at 14:21. The next possible time I want it to activate would be at 14:30. Until 14:30 I don't want the code to activate more than it already did (once). Then again from 14:30 to 15:00, I want it to activate maximum once, and so on.</p>
  <p>I don't necessarily need to divide the day like so, I'm just trying to explain what I need.</p>
  <p>I hope I explained myself clearly.</p>