#include <timeLib.h>
void setup() {
//https://www.unixtimestamp.com/
//https://www.nexcess.net/web-tools/unix-timestamp-converter/
tmElements_t t;
time_t ut;
uint8_t h, m, s, d, mo;
int y;
h = 11;
m = 57;
s = 5;
d = 9;
mo = 9;
y = 2024;
Serial.begin(9600);
while (!Serial and millis() < 5000);
setTime(h,m,s,d,mo,y);
ut = now();
Serial.print("UnixTime from Internet Sites: "); Serial.println(1725879425);
Serial.print("UnixTime from Teensy = now(): "); Serial.println(ut);
Serial.print("Difference: "); Serial.println(1725879425 - ut);
breakTime(ut,t);// 1725448362 + 3600, t); // break time_t into elements
Serial.print(t.Hour); Serial.print(":");
Serial.print(t.Minute); Serial.print(":");
Serial.print(t.Second); Serial.print(" ");
Serial.print(t.Wday); Serial.print(" ");
Serial.print(t.Day); Serial.print("/");
Serial.print(t.Month); Serial.print("/");
Serial.println(t.Year - 30);
};
void loop() {
delay(10);
};