looking to compare Unix epoch timestamps… Is there a function/library available to do something like how I would do it on Arduino:
#include <Time.h>
time_t tmConvert_t(int YYYY, byte MM, byte DD, byte hh, byte mm, byte ss)
{
tmElements_t tmSet;
tmSet.Year = YYYY - 1970;
tmSet.Month = MM;
tmSet.Day = DD;
tmSet.Hour = hh;
tmSet.Minute = mm;
tmSet.Second = ss;
return makeTime(tmSet);
}
void setup()
{
Serial.begin(9600);
time_t s_tm = tmConvert_t(2015,2,15,7,30,00);
Serial.println(s_tm);
}
void loop()
{
}