user6341: I'm using this time library to access the properties of unix timestamps like hours / minutes / etc. What I want to do is get the current time, and an estimated arrival time, and find the difference between them in minutes. 
Here's my code: (My estimated time is coming from an API as an INT)
time_t timeEstimated = timeInt;
time_t timeNow = now();

But how do I find the difference between these two timestamps in minutes? I'd like to try and avoid all of the conditionals / math that would come with converting to hours / minutes / seconds / dates and subtracting each component if possible.

user7508: Unix timestamps are just a count of seconds since a standard
origin (1970.0 UTC), thus a simple subtraction, followed by a
conversion from seconds to minutes:
float minutes_remaining = (timeEstimated - timeNow) / 60.0;


6341: <p>I'm using <a href="https://github.com/PaulStoffregen/Time" rel="nofollow noreferrer">this time library</a> to access the properties of unix timestamps like hours / minutes / etc. What I want to do is get the current time, and an estimated arrival time, and find the difference between them in minutes. </p>

<p>Here's my code: (My estimated time is coming from an API as an INT)</p>

<pre><code>time_t timeEstimated = timeInt;
time_t timeNow = now();
</code></pre>

<p>But how do I find the difference between these two timestamps in minutes? I'd like to try and avoid all of the conditionals / math that would come with converting to hours / minutes / seconds / dates and subtracting each component if possible.</p>
 7508: <p>Unix timestamps are just a count of seconds since <a href="https://en.wikipedia.org/wiki/Unix_time" rel="nofollow noreferrer">a standard
origin</a> (1970.0 UTC), thus a simple subtraction, followed by a
conversion from seconds to minutes:</p>

<pre class="lang-c++ prettyprint-override"><code>float minutes_remaining = (timeEstimated - timeNow) / 60.0;
</code></pre>
