<p>I like the idea. After a quick look, i think the code will print wrong information if the time till expire is below one hour. It would then print "minutes" as unit but stil print the hours_left.<br>
Also i am not a fan of cascaded if statements. I would at least break it on several lines.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br><a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1336#issuecomment-95144537">Reply to this email on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFQl2a_ttIycW_0VcGZw49tn9keWar7qks5oB31KgaJpZM4EEEUx.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1336#issuecomment-95144537"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>