 	}
 }
 
+time_t nowTimestamp()
+{
+#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
+	return now();
+#elif defined(__SAM3X8E__) || defined(__SAM3X8H__)
+	tmElements_t tm;
+	if (RTC.read(tm)) {
+	    return makeTime(tm);
+	}
+#endif
+	return 0;
+}
+
 //////////
 // Dive //
 //////////

		///////////////////////////
		// Update Last Dive Data //

		LastDiveData* lastDiveData = new LastDiveData;
		lastDiveData->diveDateTimestamp = now();
		lastDiveData->diveDate = currentTimeText;
		lastDiveData->maxDepthInMeters = diveResult->maxDepthInMeters;
		lastDiveData->durationInSeconds = diveResult->durationInSeconds;

    Serial.print(F("RTC time: "));
    Serial.println(settings.getCurrentTimeText());

    Serial.print(F("Now timestamp: "));
    Serial.println(nowTimestamp());

	tft.InitLCD();

	displayScreen(MENU_SCREEN);
