     - 2400000;
 }
 
-static unsigned long  numberOfSecondsSinceEpochUTC(uint16_t y, uint8_t m, uint8_t d, uint8_t h, uint8_t mm, uint8_t s) {
+static unsigned long numberOfSecondsSinceEpochUTC(uint16_t y, uint8_t m, uint8_t d, uint8_t h, uint8_t mm, uint8_t s) {
   long Days;
   Days = DateToMjd(y, m, d) - DateToMjd(1970, 1, 1);
   return (uint16_t)Days * 86400 + h * 3600L + mm * 60L + s - (timeZone * SECS_PER_HOUR);
 }
+
+static unsigned long numberOfSecondsSince1900EpochUTC(uint16_t y, uint8_t m, uint8_t d, uint8_t h, uint8_t mm, uint8_t s) {
+  long Days;
+  Days = DateToMjd(y, m, d) - DateToMjd(1900, 1, 1);
+  return (uint16_t)Days * 86400 + h * 3600L + mm * 60L + s - (timeZone * SECS_PER_HOUR);
+}
 //

time_t getNtpTime() {
  while (udp.parsePacket() > 0) ;
  sendNTPpacket(time_server);
  delay(3000);
  uint32_t beginWait = millis();
  while (millis() - beginWait < 1500) {
    int size = udp.parsePacket();

    syslogPayload += digitalRead(2);
    sendUdpSyslog(syslogPayload);
  }

  // turn off light at 6
  Alarm.alarmRepeat(6, 0, 0, runTimerDoLightOff); // 8:30am every day
}

void loop() {
