user4527: I have an I2C Real Time Clock, DS3231 RTC module , and I just want something like Unix Time.
I'm using the uRTCLib, looking at the class methods
but dont see anything like that. I'm thinking there must be a raw read that would return all the digits. Is there an easy way to do that?

user7508: The DS3231 doesn't report the Unix time. It reports the current time in
broken-down form (year, month... second). If you need Unix time, you
have to compute it.
I suggest using Adafruit's RTClib. This library implements the
computation of Unix time, e.g.
uint32_t unix_time = rtc.now().unixtime();


4527: <p>I have an I2C Real Time Clock, DS3231 RTC module , and I just want something like Unix Time.
I'm using the uRTCLib, looking at the <a href="https://naguissa.github.io/uRTCLib_doc_and_extras/classuRTCLib.html#af8eea2501d6b82726ce6226529c82a89" rel="nofollow noreferrer">class methods</a>
but dont see anything like that. I'm thinking there must be a raw read that would return all the digits. Is there an easy way to do that?</p>
 7508: <p>The DS3231 doesn't report the Unix time. It reports the current time in
broken-down form (year, month... second). If you need Unix time, you
have to compute it.</p>
<p>I suggest using Adafruit's <a href="https://github.com/adafruit/RTClib" rel="nofollow noreferrer">RTClib</a>. This library implements the
computation of Unix time, e.g.</p>
<pre class="lang-cpp prettyprint-override"><code>uint32_t unix_time = rtc.now().unixtime();
</code></pre>
