Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed LoRaWAN-lib SX1272Lib
Diff: app/unixtimestamp.cpp
- Revision:
- 11:8407ff54c40e
- Parent:
- 10:1a85ff06be1a
--- 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;