L3STIC / Mbed 2 deprecated LoRaWAN-MULTI_RTC_heure-V04

Dependencies:   mbed LoRaWAN-lib SX1272Lib

Revision:
11:8407ff54c40e
Parent:
10:1a85ff06be1a
diff -r 1a85ff06be1a -r 8407ff54c40e app/unixtimestamp.cpp
--- a/app/unixtimestamp.cpp	Wed Jan 23 16:28:51 2019 +0000
+++ b/app/unixtimestamp.cpp	Wed Feb 06 19:16:44 2019 +0000
@@ -11,6 +11,35 @@
     return seconde;
 }
 
+/*
+void chk_and_set_time(int date[6])
+{
+    
+    struct tm t;
+    time_t seconds;
+
+
+        t.tm_year       = date[5];
+
+        t.tm_mon        = date[4];
+
+        t.tm_mday       = date[3];
+
+        t.tm_hour       = date[0];
+
+        t.tm_min        = date[1];
+
+        t.tm_sec        = date[2];
+
+
+    seconds = mktime(&t);
+    set_time(seconds);
+     printf(
+        "Date: %04d/%02d/%02d, %02d:%02d:%02d\r\n",
+        t.tm_year + 1900, t.tm_mon + 1, t.tm_mday, t.tm_hour, t.tm_min, t.tm_sec
+    );
+}*/
+
 int bissextile (int an)
 {
     int bi = 0;